ask around who's there

This commit is contained in:
Felix Van der Jeugt 2016-12-02 14:44:59 +01:00
parent 09025c91ef
commit 1a442e808e
1 changed files with 6 additions and 0 deletions

6
local/bin/whoisthere Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
cat /data/random/ips | while read name host ip; do
ping -c1 -w1 "$ip" > /dev/null && echo "$name"
done