Categories
code espresso al banco

espresso code al banco

somewhere it’s coffee Time so
quick and dirty a sort command to sort IP address (linux)

input-->

192.168.1.100
192.168.1.19
192.168.1.102
192.168.2.1
192.168.0.2

Type command-->
# sort -t . -k 3,3n -k 4,4n /path/to/file

output-->

192.168.0.2
192.168.1.19
192.168.1.100
192.168.1.102
192.168.2.1

have fun