1.查找當前目錄下所有以txt文件中包含123的數字都替換成5678
find ./ -name "*.txt" -exec grep "123" {} \; -exec sed -i 's/123/5678/g' {} \;
1.查找當前目錄下所有以txt文件中包含123的數字都替換成5678
find ./ -name "*.txt" -exec grep "123" {} \; -exec sed -i 's/123/5678/g' {} \;
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。