2024-11-29 11:42:24 +01:00

3 lines
137 B
Bash

#!/bin/bash
host -l -ta sio.lan|awk 'BEGIN{ OFS=""; print "address,status,dns_name"} { print $4"/24,active,", $1 }'|sort -n > netbox.csv