Из справочной страницы (g) awks:
~ !~ Regular expression match, negated match. NOTE: Do not use a constant regular expression (/foo/)
on the left-hand side of a ~ or !~. Only use one on the right-hand side. The expression /foo/ ~
exp has the same meaning as (($0 ~ /foo/) ~ exp). This is usually not what you want.
Что вы ожидаете, если использовать его так, как он явно говорит вам не делать этого?