in reply to Re: recursive dir and file
in thread recursive dir and file
-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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: recursive dir and file
by blazar (Canon) on Nov 14, 2005 at 09:28 UTC | |
by Aristotle (Chancellor) on Nov 14, 2005 at 09:35 UTC |