[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] chown options
- Subject: [ale] chown options
- From: pete.hardie at gmail.com (Pete Hardie)
- Date: Wed Jan 19 11:35:50 2005
- In-reply-to: <044e01c4fe42$383376d0$6603a8c0@win2kpro1>
- References: <043501c4fe3e$5bfb9ba0$6603a8c0@win2kpro1> <[email protected]> <044e01c4fe42$383376d0$6603a8c0@win2kpro1>
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