LoginSignup
0
1

More than 5 years have passed since last update.

Linux > Link > head / tail > (head; tail) < file.txt > 先頭と最後を同時表示

Last updated at Posted at 2016-05-21
動作確認
CentOS 6.5

head, tailの組合せに関して検索している中で、以下のリンクを見つけた。
http://stackoverflow.com/questions/8624669/unix-head-and-tail-of-file

ファイルの先頭と最後を同時に見たい、という質問に対しての回答の1つが

(head; tail) < file.txt

コマンドを順番に実行しているだけだが、ファイル指定は1つでいいということのようだ。

他のコマンドの場合で、使い道があるかは不明。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1