多个文件批量替换内容

比如把当前目录下所有文件中的old替换成new:

sed -i "s/old/new/g" `ack -l 'old' ./` 

使用grep也可以:

sed -i "s/old/new/g" `grep -rl 'old' ./`