[sed] 多条替换命令同时执行
2019-11-12 本文已影响0人
Silver_42ac
sed -e 's/12_/abc/g' -e 's/aa_/aa_3rth/g' AAA.txt >new.txt
sed -i -e 's/12_/abc/g' -e 's/aa_/aa_3rth/g' AAA.txt
sed -n -e 's/12_/abc/g' -e 's/aa_/aa_3rth/g' AAA.txt
sed -e 's/12_/abc/g' -e 's/aa_/aa_3rth/g' AAA.txt >new.txt
sed -i -e 's/12_/abc/g' -e 's/aa_/aa_3rth/g' AAA.txt
sed -n -e 's/12_/abc/g' -e 's/aa_/aa_3rth/g' AAA.txt