Backup diff of UNIX/コマンド/テキスト処理/head(No. 7)
- Backup list
- View the diff current.
- View the diff for visual.
- View the source.
- View the backup.
- Go to UNIX/コマンド/テキスト処理/head.
- The added line is THIS COLOR.
- The deleted line is THIS COLOR.
TITLE:head - 最初の数行の表示
#navi(UNIX/コマンド)
#contentsx
head はファイルの先頭から10行抜き出して、標準出力に出力します。
% head [filename]
行数を指定したいときは、
% head -14 [filename]
などのようにします。もちろん
% ypcat passwd | head
などのようにパイプを使って入力の先頭を抜き出すこともできます。
自分は more で開いたりするので head はあまり使いませんが、tail はよく使います。
#navi(UNIX/コマンド,,footer)
----
#vote2(役に立った,まあまあ,役に立たなかった,notimestamp)
役に立たなかった場合コメントをお願いします。
#comment(below)