chmoding files
I have a server which is for personal use. Somehow (I did not do it) the permissions changed on some files.I would like to know how to change the permissions on these files. They all end with .cgi and should be 755, but there are not all in the same directory (meaning they are in the cgi-bin but multiple directories).
Is there a command to find all the files ending in .cgi and change them to 755? It would save me a LOT of time.
I did a seach online and I could only find chmod -R using it in the same directory, which would mean I would have to go to each individual directory - and there are 50 directories there.
Thanks in advance.