Created
March 18, 2011 15:09
-
-
Save NKjoep/876226 to your computer and use it in GitHub Desktop.
This simple bash script will rename all the files in the current directory: all lowercase, spaces to _ , minus - to _
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
#!/bin/bash | |
rename 'y/A-Z/a-z/' * | |
rename 'y/ /_/' * | |
rename 'y/-/_/' * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment