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