in reply to Re: How do I sort a file with IP Addresses and another text column
in thread How do I sort a file with IP Addresses and another text column?
print map{sprintf(("%d.%d.%d.%d")."%s\n",(split/,/)\[0..3\])} sort map{sprintf"%3d,"x4,(split/\W/)\[0..3\]}
It took a lot of scratching my head to adapt this, so I thought I'd save the next person the trouble. Hope it's useful!
|
|---|