Last active
August 29, 2015 13:56
-
-
Save amosshapira/9083312 to your computer and use it in GitHub Desktop.
Replace all "+" characters in file names to "%2b" url encoded
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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