Skip to content

Instantly share code, notes, and snippets.

@fay
Created September 20, 2012 07:30
Show Gist options
  • Save fay/3754431 to your computer and use it in GitHub Desktop.
Save fay/3754431 to your computer and use it in GitHub Desktop.
替换多个文件中内容
sed -i "s/aaaaaa/bbbbbb/g" `grep "static.shanbay.com" /home/fay/txts/* -rl`
@fay
Copy link
Author

fay commented Sep 5, 2013

最好先执行 grep "some text" /home/fay/txts/* -rl 确认下是否是这些文件需要修改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment