I'm on Windows and have only heard of linuxes awk etc so I can only imagine that this is possible without actual scripting:
I have data like
..
162 42 A single serving
162 62 of french fries, please
164 -1 ABC
164 -1 1
..
that I would like to be turned into
..
A single serving of french fries, please
..
so the rule would be
merge third columns for identical first columns when second column >= 0.
I'll try to find awk for Windows.
gawk "$2 >= 0 { print $3 }" txt.txtgives me the strings I want, but not yet grouped by the first column.. – none Aug 31 '11 at 15:06