Created
January 17, 2013 14:48
-
-
Save arjenvanderende/4556414 to your computer and use it in GitHub Desktop.
Changes the filename of each file in the current directory, so spaces are replaced with underscores.
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
| for name in *.*; do new_name=$(echo $name | sed 's/ /_/g'); mv "$name" $new_name; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment