I have a log file in which I have the HTTP status codes I want to skip all the lines with the value as - in column 3.
Since - is a special character I am unable to match that using the == function on awk
1_column | 2_column | -
1_column | 2_column | 200
1_column | 2_column | 201
I want to skip the below line from being shown
1_column | 2_column | -
I am trying awk -F'|' '($3=='-')'
but it doesn't work
Fix - I had to do awk -F'|' '($3==" - ")'