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 at the beginning of a word 

It matches the beginning of a word. The string followed by \< should be the beginning of the string. It should not be preceded by other characters. For example, \<start will match starting, start, or started, but not restart, as shown here:

$ awk '/\<start/'   gopr.txt

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

startstartingstart end

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