-exec should be avoided. It spawns one process per matched file. In almost every case, you want find -print0 | xargs -r0 instead, which will spawn only one process for as many files as will fit on its command line – usually, that means just one process.
find /cdw/home_dir/s006258/CSPAM -name '*.sas' -print0 | xargs -r0 chm +od 644
Makeshifts last the longest.
In reply to Re^2: recursive dir and file
by Aristotle
in thread recursive dir and file
by Fuism
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |