2011-07-06

ファイルの内容を置換するsedコマンドTips

■直接置換
sed -i 's/from/to/' target_file.txt

■後方参照
sed -i 's/\(from\)/\1/' target_file.txt

0 件のコメント:

コメントを投稿