2013年7月22日月曜日

sedを複数ファイルに

find . -name "*.txt" -exec sed -i -e 's/置換対象の文字列/置換後の文字列/' {} \;

でカレント下の.txtファイルを置換できる。

0 件のコメント: