Tuesday, April 8, 2008

Sort IP Addresses with GNU sort

Sort IP Addresses with GNU sort: "n -t . -k n -t . -k"






sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4






example:


sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4 addresses.txt

No comments: