Skip to content

Instantly share code, notes, and snippets.

@tulik
Created August 31, 2018 10:03
Show Gist options
  • Save tulik/599b78a5f8c3dd2968b0614b76d213a2 to your computer and use it in GitHub Desktop.
Save tulik/599b78a5f8c3dd2968b0614b76d213a2 to your computer and use it in GitHub Desktop.
My shell cheats
# Rename all files in directory to start with upper case letter
for i in *; do first=$(echo "${i:0:1}" | tr '[:lower:]' '[:upper:]'); new=$first${i:1}; mv "$i" "$new"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment