Einstein47
Programmer
Hey all,
Is there a way with AWK to do like you can with GREP grep "string1" | grep -v "string2"?
I am currently looking for the word Exception in a stderr.log, and this is working good. However, I want to exclude all the Exception lines that also have Login Failed.
This is my current implementation:
This is identifying all Failed Logins as fatal errors. Any help would be appreciated. Einstein47
(Love is like PI - natural, irrational, endless, and very important.)
Is there a way with AWK to do like you can with GREP grep "string1" | grep -v "string2"?
I am currently looking for the word Exception in a stderr.log, and this is working good. However, I want to exclude all the Exception lines that also have Login Failed.
This is my current implementation:
Code:
/xception/ {
print title $0
title = ""
fatal++
}
(Love is like PI - natural, irrational, endless, and very important.)