Created
August 31, 2018 10:03
-
-
Save tulik/599b78a5f8c3dd2968b0614b76d213a2 to your computer and use it in GitHub Desktop.
My shell cheats
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
| # 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