Backup diff of UNIX/コマンド/テキスト処理/head(No. 4)
- 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.
#navi(UNIX/コマンド) #contents head はファイルの先頭から10行抜き出して、標準出力に出力します。 % head [filename] 行数を指定したいときは、 % head -14 [filename] などのようにします。もちろん % ypcat passwd | head などのようにパイプを使って入力の先頭を抜き出すこともできます。 自分は more で開いたりするので head はあまり使いませんが、tail はよく使います。 RIGHT:written by s1080134 #navi(UNIX/コマンド,,footer) ---- #vote2(役に立った,まあまあ,役に立たなかった,notimestamp) 役に立たなかった場合コメントをお願いします。 #areaedit #comment(below) #areaedit(end)