Change file permissions recursively for files only in a Unix-like environment.
find /DIRECTORY -type f -exec chmod 644 {} ;