Created
July 29, 2016 18:23
-
-
Save DrewDouglass/6a23702462f1f2364c01c5e920343dd8 to your computer and use it in GitHub Desktop.
Bash script to replace spaces in filename with underscore.
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
for f in *\ *; do mv "$f" "${f// /_}"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment