I want to find all directories with the last subdirectory named doc, for then rename them to Doc. How can be renamed?
I've the first part:
find -type d -name 'doc'
which returns directories paths like:
In zsh, you can use the
If you have non-directories called
If your intention is to capitalize the directory and you're using
Note the use of
As jw013 points out in the comments
Btw, thanks rush for adding the missing pipe.