Hi.
Quote:
Originally Posted by
bakunin
Exactly this was jgt's solution (see post #2) and it got disregarded, probably without any test. Your solution will perhaps meet the same fate. ...
Yes, same idea, but not using files, rather memory -- not a big difference for small files, but for very large files,
awk will be probably faster up to a memory limit, after which the shell solution could be a winner just for not using too much memory. That'd be a big file.
The sample suggests not-huge data.
Apologies to
jgt for not recognizing the same solution, thanks to
bakunin for pointing it out... cheers, drl