Last active
August 29, 2015 14:24
-
-
Save mwielondek/83ca48130c3c90de696e to your computer and use it in GitHub Desktop.
Shell function for capitalizing filenames. Accepts multiple args.
This file contains 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
# usage: `capitalize foo.txt bar.log` will rename files foo.txt bar.log => Foo.txt Bar.log | |
function capitalize() { for i; do echo $i | gsed -r 's/\w/\u&/' | xargs mv $i; done } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment