LoginSignup
0
0

More than 5 years have passed since last update.

sedでファイルの最後の行だけ変更

Posted at

範囲指定$を利用する

AAA->BBB

sed -e '$s/AAA/BBB/'

例:最後の行の行末の,を;に

sed -e '$s/,$/;/'
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