On Unix a simple alternative to perl is to use the system's sort command:
That will sort strictly (i.e. no duplicates) on the first field; the first instance encountered is the one kept. See man sort (or info sort if your system uses GNU's sort).% sort -uk 1,1 datafile > sorted_datafile
the lowliest monk
In reply to Re: sorting arrays
by tlm
in thread sorting arrays
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |