Re: Help with at Bash script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux