On Wed, 16 Apr 2014 09:01:28 +0000, Sankaranarayanan, Vignesh wrote:

>I need help sorting some 5000 lines based on the first entry in a CSV - IP 
>address. When sorting, I need the whole record to be involved in the sort, not 
>just the IP's.

I long ago gave up trying to decipher the runes to make sort/icetool work 
properly. Even the exits didn't help sometimes.
Flick it to a zLinux instance and use GNU sort - you can use the "dot" as a key 
separator, and sort in one command. As Martin points out, any header/trailers 
may (will ) need particular attention.
Not too surprisingly the perl monks have also had had a say on this - several 
times - but I'd forgo perl in this instance.

Shane ...

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to