[CentOS] Help with at Bash script
Alexander Dalloz
ad+lists at uni-x.orgTue Dec 2 19:57:15 UTC 2014
- Previous message: [CentOS] Help with at Bash script
- Next message: [CentOS] Help with at Bash script
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [CentOS] Help with at Bash script
- Next message: [CentOS] Help with at Bash script
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list