I need to use chmod to change all files recursivly to 664. I would like to skip the folders. I was thinking of doing something like this
ls -lR | grep ^-r |
My succinct two cents...
Linux:
$ chmod 644 `find -type f`
OSX:
$ chmod 644 `find . -type f`
This works to recursively change all files contained in the current directory and all of its sub-directories. If you want to target a different directory, substitute .
with the correct path:
$ chmod 644 `find /home/my/special/folder -type f`