Re:The lack of a good command line way to sort IPv6 addresses
by Symbiote on Wednesday May 21, 2025 @11:02AM
(#44052240)
It could be reasonable to extend sort to support a hexadecimal numeric sort. It already supports numeric (decimal) and human-readable with SI prefixes (2k, 1G).
[ Parent
| on HN ]
Re:The lack of a good command line way to sort IPv6 addresses
by thesuitonym on Thursday May 22, 2025 @09:32AM
(#44061891)
Hexadecimal sort is already the same as alphabetic sort. The main problem with IPv6 addresses is that zeroes get truncated all over the place. :: could mean :0000: or :0000:0000:0000:. It's not impossible to solve by any means, but pure hexadecimal sort wouldn't work.