John Oliver wrote:
I want to go through a directory recursively, find all files owned by a
certain group, and change them to a different group ownership. find and
cut aren't doing the trick for me, since there are different numbers of
spaces. Is there a better tool to do this with?
I would think something like ...
find /top | xargs ls -ld | grep -w oldgroup | awk '{print $9}' | xargs
chgrp newgroup
--
Michael O'Keefe | [EMAIL PROTECTED]
Live on and Ride a 03 BMW F650GSDakar| [EMAIL PROTECTED] / |
I like less more or less less than |Work:+1 858 845 3514 / |
more. UNIX-live it,love it,fork() it |Fax :+1 858 845 2652 /_p_|
My views are MINE ALONE, blah, blah, |Home:+1 760 788 1296 \`O'|
blah, yackety yack - don't come back |Fax :+1 858 _/_\|_,
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list