Skip to content

Instantly share code, notes, and snippets.

@alonWang
Created September 4, 2018 02:44
Show Gist options
  • Save alonWang/92b338ed2dc0e6e4117d4298bd1216c2 to your computer and use it in GitHub Desktop.
Save alonWang/92b338ed2dc0e6e4117d4298bd1216c2 to your computer and use it in GitHub Desktop.
利用sed和find修改当前目录下所有txt文件
sed -i "s/old/new/" `find . -name '*.txt'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment