On Friday 17 October 2003 21:55, you wrote: > If someone wants to come up with a few lines of awk that take > something like this input: > <person posts="20" size="71" who="Dimitrie O. Paun" /> > <person posts="6" size="45" who="Dimitrie O. Paun" /> > > and convert it to this: > <person posts="26" size="116" who="Dimitrie O. Paun" />
Test these lines
BEGIN { FS = "\"" }
{ A+=$2 }
{ B+=$4 }
END { print "<person posts=\""A"\""" size=\"" B"\""" who=\""$6"\" />" }
mvh Acke
