Created
August 17, 2015 06:02
-
-
Save skychan/25b2114e5263110bde11 to your computer and use it in GitHub Desktop.
批量替换一些文件里的关键词 diufanshu -> skychan
This file contains 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
#!/usr/bin/env bash | |
find GitHub/ -name config > test.config | |
configs=`cat test.config` | |
for i in $configs | |
do | |
sed -i 's/diufanshu/skychan/g' "$i" | |
echo "$i is done" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment