Skip to content

Instantly share code, notes, and snippets.

@jamie-ga
Created August 11, 2016 14:01
Show Gist options
  • Save jamie-ga/2c47a98fc3c7b632fe86f529fbe076f5 to your computer and use it in GitHub Desktop.
Save jamie-ga/2c47a98fc3c7b632fe86f529fbe076f5 to your computer and use it in GitHub Desktop.
sed rename a load of files
for f in `git diff master --name-only`; do cp $f `echo $f | sed -E 's/\.(scss|html)/-v2.\1/'` ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment