summaryrefslogtreecommitdiffstats
path: root/sort-ip
blob: 0a7f56be9c0b3ab6803b736aa44a43262acf2c06 (plain)
1
2
3
4
#!/bin/bash
# Sort ipv4 addresses

sort -t . -n -k 1,1 -k 2,2 -k 3,3 -k 4,4