[Omaha.pm] Count occurrences of the value of an attribute in XML

Andy Lester andy at petdance.com
Tue May 29 19:03:06 PDT 2007


On May 29, 2007, at 7:39 PM, Jay Hannah wrote:

> $ perl -lne '/rt="(\w+)"/; print $1' RevData.DALMAN.20070529.xml |  
> uniq

I would put a \b in front of the rt so you don't match cart="foo".

--
Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance






More information about the Omaha-pm mailing list