Skip to content

Instantly share code, notes, and snippets.

@michaelklapper
Created April 16, 2013 18:07
Show Gist options
  • Save michaelklapper/5398141 to your computer and use it in GitHub Desktop.
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*
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