Skip to content

Instantly share code, notes, and snippets.

@sey
Created October 23, 2012 12:52
Show Gist options
  • Save sey/3938574 to your computer and use it in GitHub Desktop.
Save sey/3938574 to your computer and use it in GitHub Desktop.
Rename part of a filename
for file in files; do
mv $file `echo $file | sed 's/origin/new/g'`;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment