Skip to content

Instantly share code, notes, and snippets.

@wnasich
Created December 16, 2013 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wnasich/7981841 to your computer and use it in GitHub Desktop.
Save wnasich/7981841 to your computer and use it in GitHub Desktop.
Renaming files from under_score_name to CamelCaseName
#!/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