Advanced use of arrays
Hosted by Dave Morriss on 2018-08-03 is flagged as Explicit and is released under a CC-BY-SA license.
Tags: Awk utility, Awk Language, gawk, arrays, sorting.
Listen in ogg,
mp3 format. | Comments (0)
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
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
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.
I have provided detailed notes as usual for this episode, and these can be viewed here.
- GNU Awk User’s Guide
- Previous shows in this series on HPR:
- ePub version of these notes
- Examples: awk12_ex1.awk, awk12_ex2.awk, awk12_ex3.awk, awk12_ex4.awk, awk12_ex5.awk, awk12_ex6.awk, awk12_ex7.awk, awk12_ex8.awk, awk12_ex9.awk, awk12_ex10.awk, awk12_extra.awk
<< First, < Previous, Next >, Latest >>
Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.
Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).