Tuesday, 6 August 2013

awk concatonating strings which contain numbers

awk concatonating strings which contain numbers

This is very similar to my issue but not quite.
Hey folks,
I'm having an issue where I'm trying to use AWK to go through a Wireshark
text file and make a list of attributes (multiple packets same
attributes).
I save my attributes to a variable and then concatenate them before I move
onto the next packet but the problem is when I concatenate it adds the
numbers in my "string" together. Not good.
This works fine:
{stringtemp=sttl"\t"ip"\t"os"\t"brow
but not what I want, it'll get overwritten each time, I was trying this:
{stringtemp+=sttl"\t"ip"\t"os"\t"brow}
which got me into adding troubles.
I would appreciate any assistance.

No comments:

Post a Comment