有個 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
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。