moneyslow.com

xargs: unmatched single quote 解决办法

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"

一老一小费用
Exit mobile version