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
本文标题:[sed] 多条替换命令同时执行
本文链接:https://www.haomeiwen.com/subject/thwfictx.html
网友评论