On 12/10/2010 06:04 AM, Jim Hickstein wrote:
> On 2010/12/10 01:00, Paul Graydon wrote:
>> You'd still fall foul of dodgy file with special characters, surely?
>>
>> It'd be far better to do find . -name "*.meta" -exec foobar {} \;   and
>> know that you're a) not going to suffer a blow up due to too many files,
>> and b) know it's not going to get screwed up by someone or something
>> deciding a space or any other special character that'd need escaped is
>> in the list.
> I'm surprised nobody yet mentioned find -print0 | xargs -0.  This will handle
> spaces in filenames and much else besides, without the overhead of an exec for
> each file.  When I started out, find -exec rm was sometimes the occasion for a
> coffee break, if not an early lunch.  And disk drives aren't spinning millions
> of times faster than they used to.  Not yet.
>
> I love xargs.  I use it about once a week.
> _______________________________________________
Used parallel yet? http://www.gnu.org/software/parallel/
_______________________________________________
Discuss mailing list
[email protected]
https://lists.lopsa.org/cgi-bin/mailman/listinfo/discuss
This list provided by the League of Professional System Administrators
 http://lopsa.org/

Reply via email to