Quote:
Originally Posted by ghostdog74
of course you will get errors. You are mixing shell commands inside awk.
|
OK, ok, but even if I use:
Code:
#! /usr/bin/awk -f
BEGIN {
client[0] = "Alpha"
client[1] = "Beta"
client[2] = "Gamma"
client [3] = "Delta"
client [4] = "Epsilon"
client [5] = "Omega"
for(key in client){
{if($9 ~ /OK/ && $13 ~ /client[key]/)
{print $10}
}
}
}
I get nothing! I expect that print 10th field (username)...