Created
December 16, 2013 03:21
-
-
Save wnasich/7981841 to your computer and use it in GitHub Desktop.
Renaming files from under_score_name to CamelCaseName
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 file in `ls -1` | |
do | |
mv $file `echo $file | sed -e 's/_\([a-z]\)/\u\1/g' -e 's/^\([a-z]\)/\u\1/g' -` | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment