Recursion without -R
micah altman
micah at sgi.com
Thu Aug 16 03:53:22 AEST 1990
In article <KAUL.90Aug14205729 at icarus.eng.ohio-state.edu> kaul at icarus.eng.ohio-state.edu (Rich Kaul) writes:
>In article <13595 at ulysses.att.com> swfc at ulysses.att.com (Shu-Wie F Chen) writes:
> find . -print | xargs chown foo
>
> Of course, this only works if you have xargs, which is from System V and
> is also available on SunOS in their System V software installation option.
...
>
If your version of find supports the -exec option you could
recursively step through files and change the owner to "foo"
by issueing the command
find . -exec chown foo {} \;
( And yes, the "\;" at the end is necessary )
- Micah Altman
Computational Juggler
More information about the Comp.unix.questions
mailing list