O'Reilly logo

Learning AWK Programming by Shiwang Kalkhanda

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Matching non-words

Matches any character that is not considered a word, character, or underscore. It is the opposite of \W and the equivalent of [^[:alum:]_]. For example:

$ awk '/e\Wd/' gopr.txt

The output on execution of the preceding code is as follows:

e de;de    d

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required