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: Fri, 31 Jan 2003 02:07:49 +0900 (JST)
- From: Charles Muller <acmuller@example.com>
- Subject: Re: [tlug] GREP basics
- References: <20030130.234546.74755592.acmuller@example.com><20030130145621.13005.qmail@example.com>
The immediate and accurate solutions to my GREP query are deeply appreciated. Both the GREP and PERL methods worked fine (but PERL was about 5 times faster) as you can see below: [chuck@example.com ddbxml]$ grep "<hdwd>" * | wc -l 23765 [chuck@example.com ddbxml]$ perl -ne '$m += split /<hdwd>/; --$m; END {print "$m\n"}' * 23765 The documents in question are structured dictionary XML documents where there can only be one <hdwd> on each line, so that was not a problem. Now I'll do a little research to try to learn a bit about how both of these work. Thanks!! Chuck [chuck@example.com ddbxml]$ --------------------------- Charles Muller <acmuller@example.com> Faculty of Humanities, Toyo Gakuen University Digital Dictionary of Buddhism and CJKV-English Dictionary [http://www.acmuller.net] H-Buddhism List Editor [http://www2.h-net.msu.edu/~buddhism/] Mobile Phone: 090-9310-1787
- Follow-Ups:
- Re: [tlug] GREP basics
- From: bruno raoult
- References:
- [tlug] GREP basics
- From: Charles Muller
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] GREP basics
- Next by Date: [tlug] New monitor at last
- Previous by thread: Re: [tlug] GREP basics
- Next by thread: Re: [tlug] GREP basics
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links