Status : conn:Get IPs
/^\sStatus/ {
if ($2 ~ /^conn/) {
state = 1
} else {
state = 0
}
I need to find all instances where $2 begins with conn.
It needs to match the following status for example:
conn:
conn:Get IPs
conn:idle
It needs to NOT match:
not-conn:
not-conn:idle
Thanks!