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 | chmod 664
This doesn't work, I'm assuming because I can't pipe into chmod
Anyone know of an easy way to do this?