[CentOS] Help with at Bash script
Alexander Dalloz
ad+lists at uni-x.org
Tue Dec 2 19:57:15 UTC 2014
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
More information about the CentOS
mailing list