hpr2610 :: Gnu Awk - Part 12
Advanced use of arrays
Hosted by Dave Morriss on Friday, 2018-08-03 is flagged as Explicit and is released under a CC-BY-SA license.
Awk utility, Awk Language, gawk, arrays, sorting.
(Be the first).
The show is available on the Internet Archive at: https://archive.org/details/hpr2610
Listen in ogg,
spx,
or mp3 format. Play now:
Duration: 00:34:10
Learning Awk.
Episodes about using Awk, the text manipulation language. It comes in various forms called awk, nawk, mawk and gawk, but the standard version on Linux is GNU Awk (gawk). It's a programming language optimised for the manipulation of delimited text.
Gnu Awk - Part 12
Introduction
This is the twelfth episode of the “Learning Awk” series which is being produced by b-yeezi and myself.
In this episode I want to continue with the subject I started in episode 10, an advanced-level look at arrays in Awk. This episode covers patsplit
which can split a string into an array, the built-in array PROCINFO
which can be used to control how awk
sorts arrays, as well as asort
and asorti
, built-in functions for sorting arrays.
In case it might be of interest I have also included a section describing a recent use I made of awk
to solve a problem.
Long notes
I have provided detailed notes as usual for this episode, and these can be viewed here.
Links
- GNU Awk User’s Guide
- Previous shows in this series on HPR:
- “Gnu Awk - Part 1” - episode 2114
- “Gnu Awk - Part 2” - episode 2129
- “Gnu Awk - Part 3” - episode 2143
- “Gnu Awk - Part 4” - episode 2163
- “Gnu Awk - Part 5” - episode 2184
- “Gnu Awk - Part 6” - episode 2238
- “Gnu Awk - Part 7” - episode 2330
- “Gnu Awk - Part 8” - episode 2438
- “Gnu Awk - Part 9” - episode 2476
- “Gnu Awk - Part 10” - episode 2526
- “Gnu Awk - Part 11” - episode 2554
- Resources: