Quote:
Originally Posted by ranjithpr
filename=$1
sort $filename|
awk ' BEGIN {FS="+"; prev_key1=""; prev_key2=0; prev_key2=0; first=1; }
...
|
The sort needs to be smarter, the OP was not sorting by the first element (but they have that bit working so I just left it out of the solution

)