And that would be not only a Useless Use of Cat, but not taking advantage of sort's field sorting abilities either:cat test.txt | sed -e's/\(.*\) \(.*\)/\2,\1/g' | sort
$ sort +1 -2 +0 -1 <test.txt >output.txt
-- Randal L. Schwartz, Perl hacker
In reply to •Re: Re: Associative Array Trouble
by merlyn
in thread Associative Array Trouble
by EmmittSmith
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |