a question about GREP
    Kevin D. Clark 
    kevin_d_clark at comcast.net
       
    Fri Mar 23 22:20:24 EDT 2007
    
    
  
Ben Scott writes:
>   Holy crap!  Where's Perl's oft-decried extreme conciseness?  ;-)
>From my perspective, I deal with unix-flavored systems all the time
with feature-lacking grep implementations.  As recently as three weeks
ago, I was working on a system without any fancy GNU grep.  This
system would happy grep through binary files and display the output on
your screen....thus hosing your terminal.
My solution comes from my experience, and I was going for correctness,
portability, and clarity, in that order.  I realize this is a Linux
list, but I don't always live in that world.
By the way, did you forget to add "--binary-files=without-match" to
your solution?  The original poster asked for text files only.
Kind Regards,
--kevin
-- 
GnuPG ID: B280F24E              Never could stand that dog.
alumni.unh.edu!kdc                   -- Tom Waits
    
    
More information about the gnhlug-discuss
mailing list