置換檔案集合中某個文字

置換檔案集合中某個文字

Example
for fl in *.txt; do
mv $fl $fl.old
sed 's/find/replace/g' $fl.old > $fl
done
Implement: 批次更改
for name in *.sh; do  mv $name $name.old; sed 's/PTW01/PTW03/g' $name.old > $name; done