Skip to content

Instantly share code, notes, and snippets.

@joeybaker
Created May 10, 2012 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joeybaker/2654941 to your computer and use it in GitHub Desktop.
Save joeybaker/2654941 to your computer and use it in GitHub Desktop.
Batch rename in bash example
ls mx50_* | awk '{print("mv "$1" "$1)}' | sed s/mx50_*/buckminster_/2 | /bin/sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment