I'm trying to write a shell command where I can specify a directory, and then every file and directory inside will have the first letter of every word capitalized. So
/doCumenTS/tesT.txt
should change to
/DoCumenTS/TesT.txt
I'm thinking it should start like
for i in directory do
tr something_goes_here
done
The problem I can't figure out is how to only do the first letter. I've made a script that uppercase the whole file name, but I can't figure out how to only get the first letter of every word.
Thanks!