rename 's/oldString/newString/' *
比如:before_a_dog.txt替换以后为after_a_dog.txt
sed -i "s/oldString/newString/g" `grep oldString -rl /path`
rename 's/oldString/newString/' *
比如:before_a_dog.txt替换以后为after_a_dog.txt
sed -i "s/oldString/newString/g" `grep oldString -rl /path`