[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [SAGE] LDAP Migration Question
On 6/29/07, David Magda quoted Chris St. Pierre:
>> find / -owner $old_uid | xargs chown $2
>
> Be careful with paths with spaces with this line.
Indeed.
> Depending on the version of find(1) that is being used it may be desirable
> to use the "-exec" option instead of xargs(1).
Personally, I'd recommend using the "-print0" argument to find, and
the "-0" argument to xargs. That works pretty reliably for me, and
avoids unnecessary large numbers of single-instance exec calls where
a smaller number of xargs calls can be done.
--
Brad Knowles <brad@shub-internet.org>, Consultant & Author
LinkedIn Profile: <http://tinyurl.com/y8kpxu>
Slides from Invited Talks: <http://tinyurl.com/tj6q4>
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0