Searches through the htdocs and cgi-bin directories for files that end with the extension .cgi. When these files are found, their permission is changed to mode 755 (rwxr-xr-x).
find htdocs cgi-bin -name "*.cgi" -type f -exec chmod 755 {} \;