shell替换某个目录下文件中的字符串

xiaoxiao2022-06-21  49

cd /home/work/dirname find ./ -type f -name "*" > filelist while read myf do sed "s#stringa#stringb#g" $myf > temp.txt sed "s#string1#string2#g" temp.txt > temp1.txt mv temp1.txt $myf done < filelist rm temp.txt   相关资源:敏捷开发V1.0.pptx
转载请注明原文地址: https://www.6miu.com/read-4950549.html

最新回复(0)