Created
September 15, 2014 14:52
-
-
Save nabinno/17d4847c4163c253d64c to your computer and use it in GitHub Desktop.
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
for i in `find . -name "*.html" | xargs grep -l "foo"` ; do | |
cp $i $i.org`date +%y%m%d` ; | |
sed 's/foo/bar/g' $i.org`date +%y%m%d` > $i ; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment