LoginSignup
12
9

More than 5 years have passed since last update.

Linux - 標準出力で先頭指定行飛ばしたり、後ろ指定行読み

Posted at

飛ばしたりする方法
tailコマンドやheadコマンドを使って標準出力の行を制御。これは便利!

先頭5行飛ばして6行目から出力する

tail -n +6 test.txt

後ろ5行出力しない

head -n -5 test.txt

参考

12
9
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
12
9