If you ever need to sort a file by IP
address, this little command will
serve you well:
sort -t . -k 1,1n -k 2,2n -k 3,3n -k 4,4n
It will correctly sort IP addresses from
the first octet numerically, then each
following octet.
http://www.ugu.com/sui/ugu/show?tip.today
Bye :)
--
Bharathi S