Am 02.12.2014 um 20:47 schrieb Tony Schreiner:
while read domain; do
echo ${domain}
done < <(tcpdump -l -n -e port 53 | awk '{if ($14 ~ /A.*?/) print $15}')
[ ... ]
Alexander
If not a typo in the message, your mistake, and I do it all the time, is using
while read $domain
instead of
while read domain
Tony
Tony,
no, "while read $domain" is wrong.
Alexander