Here is what I have:
Code:
#!/bin/bash
echo "Please type a file name"
read fname
while read name; do
nslookup $name | awk '/^Address:/ { if(ok) { print $2;} } /answer/ { ok=1; }' | while read address; do
ping -c 5 $address
done
whois $name | egrep '\w+([._-]\w)*@\w+([._-]\w)*\.\w{2,4}' | awk '{print $2;}' | while read email; do
echo EMAIL: $email
done
done
When I execute this command, it just lags, nothing happens. Can anyone else get this to work with a text file with some domain names in it? Am I doing something wrong?
Tarken