[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cvs add `find ./`
From: |
Gerhard Sittig |
Subject: |
Re: cvs add `find ./` |
Date: |
Fri, 6 Oct 2000 23:06:36 +0200 |
On Fri, Oct 06, 2000 at 08:33 -0500, Richard J. Duncan wrote:
>
> Then run,
>
> find . -type f -exec foo.pl {} \;
An exec for every single item found is quite expensive (don't
know about today's timing, but I would estimate some 10 msec for
creating a new process -- the perl compiler run adds to this,
too).
Get yourself trained to use the xargs(1) command. It will
balance between too many program invocations and too long command
lines ("foo.pl `find ...`" doesn't work for some 4K arguments on
the platforms I've seen.).
find . -type f -print0 | xargs -0 foo.pl
virtually yours 82D1 9B9C 01DC 4FB4 D7B4 61BE 3F49 4F77 72DE DA76
Gerhard Sittig true | mail -s "get gpg key" address@hidden
--
If you don't understand or are scared by any of the above
ask your parents or an adult to help you.