Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] GREP basics



On Thu, Jan 30, 2003 at 04:10:53PM +0100, Godwin Stewart wrote:
> On Thu, 30 Jan 2003 23:58:48 +0900, Matt Doughty <wyndigo@example.com>
> wrote to tlug@example.com and Cc'ed to tlug@example.com:
> 
> > grep "<hdwd>" * | wc -l
> 
> What if there's more than one occurance of <hdwh> on the same line?
> 

Ok corner case I didn't consider. Still there are systems without perl
so: 

cat * | grep -c "<hdwd>"

everyone happy. :)

--Matt


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links