Created
September 4, 2018 02:44
-
-
Save alonWang/92b338ed2dc0e6e4117d4298bd1216c2 to your computer and use it in GitHub Desktop.
利用sed和find修改当前目录下所有txt文件
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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