[lug] find command or similar

Ed Hill ed at eh3.com
Tue May 13 12:04:51 MDT 2003


On Tue, 2003-05-13 at 11:53, Kenneth D. Weinert wrote:
> > 
> > Heh, I win.  ;-)
> 
> Sort of - replace the [[:alnum:]] in mine with . (and I should have
> thought of that) and I turn back into the winner because you know
> *where* the file is, not just its name.
> 
> Of course, that wasn't part of the spec, so I guess it's a tie :)

  find . -name '*' -depth -printf "%f %h/%f\n" | \
    gawk '(length($1)>200){print $2}'

or:

  find . -name '*' -depth -printf "%f %h/%f\n" | \
    gawk '(length($1)>200 && length($1)<240){print $2}'

And I win even with the added-after-the-spec criteria!  :-p

Ed

ps - You know I'm just kidding, right?


-- 
Edward H. Hill III, PhD 
Post-Doctoral Researcher
Division of ESE, Colorado School of Mines, Golden, CO 80401
Email: ed at eh3.com  ehill at mines.edu
Phone: 303-273-3483
URLs:  http://cesep.mines.edu/people/hill.htm  http://eh3.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20030513/b8c8673d/attachment.pgp>


More information about the LUG mailing list