Skip to content

Instantly share code, notes, and snippets.

@hollodotme
Last active January 5, 2016 22:08
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 hollodotme/f466e110bbe656a625c0 to your computer and use it in GitHub Desktop.
Save hollodotme/f466e110bbe656a625c0 to your computer and use it in GitHub Desktop.
PATTERN="*" \
for file in `ls -1 "$PATTERN"`; do \
git mv -f "$file" `echo "$file" | perl -nE 'say ucfirst'` \
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment