Jim Salter on Nostr: I don't know which of y'all needs to hear this today, but you can sort IPv4 addresses ...
I don't know which of y'all needs to hear this today, but you can sort IPv4 addresses quickly and easily with newer versions of GNU sort: cat ipaddresses.txt | sort -V will do the trick.
This is essentially accidental, as -V is intended to properly sort "software version numbers" but it works like a champ for IPv4 addresses.
Also, stop using nmap just to get a quick list of what machines are occupying what addresses on your subnet. That's what arp-scan is for!
Published at
2024-07-25 22:36:46Event JSON
{
"id": "d3144206bce8237fe46ad78d9e0b7173a1171e77adf9ee74259479c5447ac3c4",
"pubkey": "2a34e4a82ad7fa53cffad2b8078e6281d1516b75644389e3c06efd5d5baba053",
"created_at": 1721947006,
"kind": 1,
"tags": [
[
"proxy",
"https://fosstodon.org/users/jimsalter/statuses/112849519033625493",
"activitypub"
]
],
"content": "I don't know which of y'all needs to hear this today, but you can sort IPv4 addresses quickly and easily with newer versions of GNU sort: cat ipaddresses.txt | sort -V will do the trick.\n\nThis is essentially accidental, as -V is intended to properly sort \"software version numbers\" but it works like a champ for IPv4 addresses.\n\nAlso, stop using nmap just to get a quick list of what machines are occupying what addresses on your subnet. That's what arp-scan is for!",
"sig": "a77000ad95ff68dc0262a1c5419010754c00aa74ed8d090572b01603826a92e286bcb4a1aa482f85d6b7492e3bbb79e4d5a07e40f08c2a3f614d76ef40e6c536"
}