有个 test.txt 文件内容为 hello tom,现在修改成 hello jerry,并保存到test2.txt
sed 's/tom/jerry/g' test.txt >test2.txt
有个 test.txt 文件内容为 hello tom,现在修改成 hello jerry,并保存到test2.txt
sed 's/tom/jerry/g' test.txt >test2.txt
转载于:https://www.cnblogs.com/xbblogs/p/8436404.html