Shell script that will recursively set "file" permissions starting from the current working directory (pwd), to 0644 (user=read/write, group=read, world=read).
#!/bin/sh
#
# Recursively set "file" permissions starting from the current
# working directory, to 0644 (user=read/write, group=read, world=read).
#
# chmod options:
#
# `-v` verbose, will output files that were changed to 0644
#
find . -type f -print0 | xargs -0 chmod -v 0644