Skip to content

Instantly share code, notes, and snippets.

@tdl
Created December 3, 2012 09:04
Show Gist options
  • Save tdl/4193751 to your computer and use it in GitHub Desktop.
Save tdl/4193751 to your computer and use it in GitHub Desktop.
Batch rename on Unix
# change filenames, replacing "fgh" by "abc"
for f in fgh*; do mv "$f" "${f/fgh/abc}";done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment