[ale] chown options

Pete Hardie pete.hardie at gmail.com
Wed Jan 19 11:35:50 EST 2005


On Wed, 19 Jan 2005 11:16:07 -0500, Ryan Fish <FishR at bellsouth.net> wrote:
> So (pardon the relative newbie here please), would I just add this to the
> line performing the recursive chown as in?:
> 
> chown -R UID.GID /a/b/c ; find .-print |grep /d/e |xargs -n 10 chown
> UID2:GID2
> 
> OR, would I need to place this on a separate line?

Skip everything up to the find - find will traverse the filesystem
tree, printing each; grep filters for the one you want (or filters out
those you don't want); xargs runs the command on each entry that
passes the filter.

-- 
Better Living Through Bitmaps



More information about the Ale mailing list