Advanced Features (The GNU Awk User’s Guide)
Next: Internationalization, Previous: Sample Programs, Up: Top [Contents][Index]
Part III:Moving Beyond Standard awk with gawk
12 Advanced Features of gawk
Write documentation as if whoever reads it is a violent psychopath who knows where you live.
— Steve English, as quoted by Peter Langston
This chapter discusses advanced features in gawk. It’s a bit of a “grab bag” of items that are otherwise unrelated to each other. First, we look at a command-line option that allows gawk to recognize nondecimal numbers in input data, not just in awk programs. Then, gawk’s special features for sorting arrays are presented. Next, two-way I/O, discussed briefly in earlier parts of this Web page, is described in full detail, along with the basics of TCP/IP networking. Finally, we see how gawk can profile an awk program, making it possible to tune it for performance.
Additional advanced features are discussed in separate chapters of their own:
- Internationalization with
gawk, discusses how to internationalize yourawkprograms, so that they can speak multiple national languages. - Debugging
awkPrograms, describesgawk’s built-in command-line debugger for debuggingawkprograms. - Arithmetic and Arbitrary-Precision Arithmetic with
gawk, describes how you can usegawkto perform arbitrary-precision arithmetic. - Writing Extensions for
gawk, discusses the ability to dynamically add new built-in functions togawk.
| • Nondecimal Data | Allowing nondecimal input data. | |
| • Array Sorting | Facilities for controlling array traversal and sorting arrays. | |
| • Two-way I/O | Two-way communications with another process. | |
| • TCP/IP Networking | Using gawk for network programming.
| |
| • Profiling | Profiling your awk programs.
| |
| • Advanced Features Summary | Summary of advanced features. |
Next: Internationalization, Previous: Sample Programs, Up: Top [Contents][Index]