User Tools

Site Tools


sort_a_list_of_ip_addresses

Sort a List of IP Addresses

sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4 <filename>

or

<command output> | sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4
sort_a_list_of_ip_addresses.txt · Last modified: 2016/11/25 22:38 (external edit)