Created
August 25, 2010 17:27
-
-
Save sprohaszka/549910 to your computer and use it in GitHub Desktop.
replace string in files
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
#!/bin/bash | |
for file in *.groovy | |
do | |
echo "Traitement de $file ..." | |
sed -e "s/string1/string2/g" "$file" > "$file".tmp && mv -f "$file".tmp "$file" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment