On Jan 10, 2007, at 12:07 PM, 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?

find /startpath -gid <old_group_id> | xargs chgrp <new_group_id>

or

find /startpath -group <old_group> | xargs chgrp <new_group>

Gregory

--
Gregory K. Ruiz-Ade <[EMAIL PROTECTED]>
OpenPGP Key ID: EAF4844B  keyserver: pgpkeys.mit.edu



--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to