Need to sort list of IP addresses in shell? Here’s the invocation that works:
sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4
Thanks for this tip goes to Paul Heinlein.
Related:How to grep for IP addresses using the GNU egrep utility
Except where otherwise stated, original content is © 2003-2017 LinuxInsight. Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries. Drupal® is a registered trademark of Dries Buytaert. Other marks are property of their respective owners. Comments are property and responsibility of their authors.