Re: Counting specific elements in a XML object



Chas Owens am Donnerstag, 30. März 2006 22.35:
cat fn | grep <string to be searched for> | wc
[...]
grep <string to be searched for> fn | wc
[...]
If we are going to pick nits then it should be

grep -c "<employee>" fn

too much work.

c "<employee>" fn

But your alias may be different ;-)

Hans
.