Skip to content

Instantly share code, notes, and snippets.

@amosshapira
Last active August 29, 2015 13:56
Show Gist options
  • Save amosshapira/9083312 to your computer and use it in GitHub Desktop.
Save amosshapira/9083312 to your computer and use it in GitHub Desktop.
Replace all "+" characters in file names to "%2b" url encoded
What I like about this way of doing this is that it takes advantage of Bash internals without external commands.
for i in *; do mv $i ${i//+/%2b}; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment