LoginSignup
0
0

More than 1 year has passed since last update.

grep, sedを使用してファイル内の特定の文字列を一括置換

Posted at

(自身の備忘録用です)

特定の文字列が含まれるファイルを一括検索し、任意の文字列に置換するコマンドです

grep -r [検索文字列] ./ -l | xargs sed -i -e 's/[検索文字列]/[置換文字列]/g'
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