Created
January 2, 2020 09:55
-
-
Save bobbyshaw/9ad6c4e78255710f1e5fe483bacf5b36 to your computer and use it in GitHub Desktop.
Rename files that have %20 instead of a space in them
This file contains hidden or 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
#!/bin/bash | |
for x in ./* | |
do mv -- "$x" "${x//%20/ }" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment