[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [SAGE] LDAP Migration Question
On Fri, Jun 29, 2007 at 06:33:45PM -0400, David Magda wrote:
> On Jun 29, 2007, at 12:43, Chris St. Pierre wrote:
>
> >find / -owner $old_uid | xargs chown $2
>
> Be careful with paths with spaces with this line.
>
> Depending on the version of find(1) that is being used it may be
> desirable to use the "-exec" option instead of xargs(1).
Or change it to use:
find / -owner $old_uid -print0 | xargs -0 chown $2
... assuming your find and xargs support using null seperated strings instead
of ones that use spaces and newlines.
Travis
--
Travis Campbell
hcoyote@ghostar.ath.cx