有个 test.txt 文件内容为  hello tom,现在修改成 hello jerry,并保存到test2.txt

sed 's/tom/jerry/g' test.txt >test2.txt

 

相关文章: