[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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




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@petdance.com => www.petdance.com => AIM:petdance