Skip to content

Instantly share code, notes, and snippets.

@jottr
Created January 13, 2014 22:56
Show Gist options
  • Save jottr/8409745 to your computer and use it in GitHub Desktop.
Save jottr/8409745 to your computer and use it in GitHub Desktop.
Changes the matching string in the filenames containg that string.
for f in *; do n=$(echo "$f" | sed -e "s/oldString/newString/"); mv "$f" "$n"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment