wada811 / blog

wada811's blog
https://github.com/wada811/blog/issues
Apache License 2.0
6 stars 0 forks source link

head -n COUNT で先頭 COUNT 行を表示する #22

Open wada811 opened 5 years ago

wada811 commented 5 years ago

How

head [-n count] [file ...]

例: 先頭 1 行を表示する

head -n 1  [file ...]

What

-n オプション

行数を指定する。行数を指定しない場合はデフォルトで 10 行表示する。

Ref

head(1) BSD General Commands Manual