ls |sort -t "." -k4 -n 1.txt >2.txt
[root@xingfujie~]# cat 2.txt
10.15.201.3
10.15.201.5
10.15.201.6
10.15.201.8
10.15.201.9
10.15.201.10
ls |sort -t "." -k4 -n 1.txt >2.txt
[root@xingfujie~]# cat 2.txt
10.15.201.3
10.15.201.5
10.15.201.6
10.15.201.8
10.15.201.9
10.15.201.10