Displaying 1 result from an estimated 1 matches for "cerrectly".
2014 Dec 02
7
Help with at Bash script
I am attempting to get a script borrowed from DJB to work on my CentOS-6.6
box. Simplified it looks like this:
tcpdump -l -n -e port 53 \
| awk '{if ($14 ~ /A.*?/) print $15}' \
| while read domain ; do echo $domain ; done ;
The sticking point is the 'while read' construct. Run just as 'tcpdum | awk'
I get this:
english.stackexchange.com.
www.urbandictionary.com.