myshellconfig/bin/getfreeip
2021-10-19 12:01:24 +02:00

5 lines
81 B
Bash

#!/bin/bash
N=$1
sudo nmap -v -sn -n $1 -oG - | awk '/Status: Down/{print $2}'