WWN: wn20031017_192.xml
Acke Carlsson
ackek at tiscali.se
Fri Oct 17 18:24:46 CDT 2003
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
More information about the wine-devel
mailing list