I get this syntax error with my code - I tried putting quotes in different places, but no luck. Can someone help. Thank!
awk: non-terminated string | grep Re... at source line 1
context is
>>> <<<
awk: giving up
source line number 2
awk '/ (TCP|UDP) / { split($5, addr, /:/);
cmd = "/bin/geoiplookup " addr[1] | grep 'Rev 1:' | sed 's/Rev 1: //g' " | awk -F', ' '{print $4",", $3",", $2}';
cmd | getline rslt;
close(cmd);
print $1, $2, $3, $4, $5, $6, rslt }' < "$IP_PARSED" >> "$BlockedIPs"
source
share