General discussion
Thread display: Collapse - |
All Comments
Start or search
Create a new discussion
If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.
awk - help with "|" as "or" and syntax
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?