In FreeBSD 7, I used this command to sort a file with IP addresses:
Now, in FreeBSD 10, that command does not work.
I tried:
But I get nothing.
This is the input file:
What is the problem?
sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4Now, in FreeBSD 10, that command does not work.
I tried:
sort -t. -k1n,1 -k2n,2 -k3n,3 -k4n,4 sort -t . -k 1,1n -k 2,2n -k 3,3n -k 4,4nBut I get nothing.
This is the input file:
Code:
11.1.2.3
10.0.0.1
10.0.0.200
10.0.0.100
10.0.0.30
10.0.0.2
2.0.0.10
What is the problem?
Code:
OS=FreeBSD 10.1-RELEASE sparc64
sort version = 2.3 FreeBSD