Re: Counting specific elements in a XML object
- From: chas.owens@xxxxxxxxx (Chas Owens)
- Date: Thu, 30 Mar 2006 15:35:03 -0500
On 3/30/06, Hans Meier (John Doe) <security.department@xxxxxxxx> wrote:
Gavin Bowlby am Donnerstag, 30. März 2006 21.45:
How about:
cat fn | grep <string to be searched for> | wc
When I posted a "cat | grep" the first (and last) time, several people got a
well known heart attack :-)
grep <string to be searched for> fn | wc
as a non-Perl approach to the problem...[...]
Agreed, but OT here ;-)
Hans
If we are going to pick nits then it should be
grep -c "<employee>" fn
.
- Follow-Ups:
- Re: Counting specific elements in a XML object
- From: Bob Showalter
- Re: Counting specific elements in a XML object
- From: Hans Meier
- Re: Counting specific elements in a XML object
- References:
- RE: Counting specific elements in a XML object
- From: Gavin Bowlby
- Re: Counting specific elements in a XML object
- From: Hans Meier
- RE: Counting specific elements in a XML object
- Prev by Date: Re: Counting specific elements in a XML object
- Next by Date: Re: Counting specific elements in a XML object
- Previous by thread: Re: Counting specific elements in a XML object
- Next by thread: Re: Counting specific elements in a XML object
- Index(es):
Relevant Pages
|
|