October 2005
Intermediate to advanced
908 pages
46h 42m
English
gawk allows you to use
octal and hexadecimal constants in your program source code. The form is as in C:
octal constants start with a leading 0, and hexadecimal constants with a
leading 0x or 0X. The hexadecimal digits a-f may
be in either upper- or lowercase.
$ gawk 'BEGIN { print 042, 42, 0x42 }'
34 42 66Use the strtonum() function
to convert octal or hexadecimal input data into numerical
values.
Read now
Unlock full access