$ perl -e 'system q !sort -k 2 -t "|" -o file file!'
or without perl:
$ sort -k 2 -t "|" -o file file
which will even do the "right thing" if the file is huge.
Abigail
In reply to Re: sorting arrays...
by Abigail-II
in thread sorting arrays...
by iamrobj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |