LoginSignup
0
0

More than 1 year has passed since last update.

よく使うちょっと複雑なLinuxコマンド一覧

Last updated at Posted at 2022-04-17

ちょっと複雑なコマンド処理の仕方の備忘録

Contents

ファイル100行目から110行目までを見たいとき

cat file | head 110 | tail 10

最初から100行目までを削除する

# 確認
sed -e '1,100d' /path/to/file | head

# 上書き削除
sed -i -e '1,100d' /path/to/file

0
0
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
0