Greybeard here. Just blogged about this very topic a couple of weeks ago: “The Unreasonable Effectiveness of Awk”
You could also use
BEGIN {
FS = “: “
}
Which sets the field separator. This would put the keywords into $2 and remove the need for the gensubs :)Anyway, cool blog. I'm reading it.