find . -name file -exec echo abc > {} \; failbash
應該改用:spa
find . -name file -exec bash -c 'echo abc > {}' \;
或者code
for i in `find . -name file` do echo abc > $i done