in reply to Associative Array Trouble

If you have Unix-like tools you could do ...
$ cat test.txt | sed -e's/\(.*\) \(.*\)/\2,\1/g' | sort Brown,Jim Payton,Walter Sanders,Barry Smith,Emmitt

Replies are listed 'Best First'.
•Re: Re: Associative Array Trouble
by merlyn (Sage) on May 23, 2002 at 00:18 UTC
      Hmmm ... maybe we can have a golf game?
      What would be shorter a shell script or a perl script?
      My money would be on the shell script. What do you think merlyn?