Skip to content

Instantly share code, notes, and snippets.

@rjcorwin
Created June 29, 2018 18:42
Show Gist options
  • Save rjcorwin/9f97a966c6c46f42063bfea2e01fb209 to your computer and use it in GitHub Desktop.
Save rjcorwin/9f97a966c6c46f42063bfea2e01fb209 to your computer and use it in GitHub Desktop.
for f in *; do mv "$f" "$(echo "$f" | sed s/$1/$2/)"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment