Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] GREP basics
- Date: Thu, 30 Jan 2003 11:18:15 -0500
- From: Viktor Pavlenko <vvp@example.com>
- Subject: Re: [tlug] GREP basics
> > From: Tapio Peltonen <tappel@example.com> > Date: 2003/01/30 Thu AM 10:58:20 EST > >perl -ne '$m += split /<hdwd>/; --$m; END {print "$m\n"}' * > > Hm, my perl is a bit rusty, does this count the occurrances if they > start within the previous occurrance? So that if you want to count the > occurrances of the string "aba" in the string "ababa" so it would answer > two? > No it would be one, which is quite logical IMHO. Viktor
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] GREP basics
- Next by Date: Re: [tlug] GREP basics
- Previous by thread: Re: [tlug] GREP basics
- Next by thread: [tlug] New monitor at last
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links