Created
April 16, 2013 18:07
-
-
Save michaelklapper/5398141 to your computer and use it in GitHub Desktop.
- Replace all occurence of "production" with "staging" within the files mathing the patter "deployment_bosch-intranet_production*" - Rename the file from *production* into *staging*
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 file in $(ls deployment_bosch-intranet_production*); do | |
sed -i 's/production/staging/g' ${file}; | |
mv ${file} ${file/production/staging}; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment