>> ; du -a | awk '-F\t' '{print $2}' -
>
>All this nonsense because the dogmatists refuse to accept
>/n/sources/contrib/cross/walk.c into the distribution.
find and walk are about the same program. my version of
find started with andrey's. his find page (http://mirtchovski.com/p9/find/)
is dated 31-jul-2004, predating the given walk.c by ~18 months,
though i don't know which was written first.
the reason i started fiddling with find was to see if it couldn't
go a bit faster than du. (it did.)
my cannonical examples of its use are
find | grep whereisthatfile
and
grep whereisthatfunction `{find /sys/src|grep '\.[chlsy]$'}
i don't think it's that important that it absolutely needs to
be in the distribution; it's a convience.
what seems more important to me is a way to unlimit the size
of argv. otherwise we'll need to go down the hideous xargs path.
(apoligizes to hideous functions everywhere for the slur.)
- erik
|
|
0
|
|
|
|
Reply
|
quanstro (3877)
|
12/29/2009 12:44:42 AM |
|
> what seems more important to me is a way to unlimit the size
> of argv. otherwise we'll need to go down the hideous xargs path.
How often have you run up against the current limit? I've yet to hit
it in anything other than contrived tests. And even those took work.
> find and walk are about the same program.
There are a few versions about. Dan's has the exactly right lack of
options to meet my needs. Others might too, but his is the version I
found first.
--lyndon
|
|
0
|
|
|
|
Reply
|
lyndon
|
12/29/2009 1:05:58 AM
|
|
2009/12/29 erik quanstrom <quanstro@quanstro.net>:
> what seems more important to me is a way to unlimit the size
> of argv. =C2=A0otherwise we'll need to go down the hideous xargs path.
> (apoligizes to hideous functions everywhere for the slur.)
i don't really see why xargs (the idea, not the usual unix implementations)
is inherently such a bad idea. years ago i wrote an ultra simple version
with no options, and it's about 80 lines of code, which i use to grep
through all of /sys/src for example.
if you always split on \n (which is banned in filenames in plan 9) and
don't interpret any other metacharacters, what's the problem?
it's also nice because you often get some results before you've
walked the entire file tree.
|
|
0
|
|
|
|
Reply
|
rogpeppe
|
1/1/2010 8:40:30 PM
|
|