Quote:
I have this grep -c 'state:unreachable', but I need to add 'state:invalid'. To get a count of the "invalids" |
The problem is that I don't know where you want the output. Anyway, maybe something like this:
Code:
awk 'BEGIN { |
Quote:
|
Quote:
I tried that, it worked fine in its form. I've been trying to code it in such a way to have both counts = a single numeric output. Meaning "invalid" + "unreachable" = 5 (as an example) |
How about this:
Code:
print invalid_count + unreachable_count |
Quote:
|
All times are GMT -5. The time now is 06:54 PM. |