User Tools

Site Tools


sort_a_list_of_ip_addresses

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

sort_a_list_of_ip_addresses [2016/11/25 22:38] (current)
Line 1: Line 1:
 +===== 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)