find . -type f -name \*.txt | xargs sed -i "s/aaa/bbb/g"
改为:
find . -type f -name \*.txt -print0|xargs -0 sed -i "s/aaa/bbb/g"
find . -type f -name \*.txt | xargs sed -i "s/aaa/bbb/g"
改为:
find . -type f -name \*.txt -print0|xargs -0 sed -i "s/aaa/bbb/g"