set chmod 755 directories 644 files!

From: Su-Long Nyeo (nyeo_at_dirac.phys.ncku.edu.tw)
Date: 05/09/03


Date: 9 May 2003 03:22:12 GMT

Hi here,
Does anyone know how to write a simple shell script
that can do recursively by changing the atrributes
of directories to (say) 755 and the files within
to 644.
umask 022 can only work for new ones.
and chmod -R 755 * will give 755 for everything.

Thank,
Su-Long