Skip to content

Instantly share code, notes, and snippets.

@skychan
Created August 17, 2015 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skychan/25b2114e5263110bde11 to your computer and use it in GitHub Desktop.
Save skychan/25b2114e5263110bde11 to your computer and use it in GitHub Desktop.
批量替换一些文件里的关键词 diufanshu -> skychan
#!/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