How-To question for the NC*SA brain trust...
Lance A. Brown
brown9 at niehs.nih.gov
Tue Mar 16 16:47:52 EST 2004
What about something like:
cat $list | sed -e 's/^/"/' -e 's/$/"/' | xargs chmod o-w
This results in fewer chmod commands being executed.
I often use that sed statement while doing finds and whatnot in
directory spaces in samba shares, etc.
--[Lance]
--
Lance A. Brown
SysAdmin Task
LMIT ITSS Contract for
National Institute of Environmental Health Sciences
919.361.5444x420
More information about the ncsa-discussion
mailing list