我的代码出现此语法错误 - 我尝试将引号放在不同的地方,但没有运气。有人可以帮忙吗。谢谢!
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"