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

Bit-manipulating functions

AWK has C-like bit-manipulating functions. Although they are not used much in day-to-day AWK programming, as it is primarily used for text manipulation and extraction, this a feature can nevertheless be handy for someone dealing with statistics or numbers.

The following table shows a list of single-digit decimal numbers and their binary equivalent:

Decimal

Binary

2

10

3

11

4

100

5

101

6

110

7

111

8

1000

9

1001

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