I have an awk statement on my log server that discards ignorable data and emails the rest once a day. The statement is
awk ‘! /\.debug\]/ && ! /\.info\]/ && ! ……
I want to combine the .debug] and .info] matches in one expression with or so I tried
awk ‘! /[\.debug\]|\.info\]]/ && ! ……
This doesn’t seem to work. I was able to a simpler join as follows
&& ! /wally updater/ && ! /dilbert updater/ && ! ……
rewritten as
&& ! /[wally|dilbert] updater/ && ! ……
Any ideas why it isn’t working with the first expression set?