批量替换grep找到的关键字

使用一句搞定:

sed -i "s/aaa/bbb/g" `grep aaa -rl .`

猜你喜欢

转载自socol.iteye.com/blog/1566742