Skip to main content
4 events
when toggle format what by license comment
Jun 16, 2019 at 14:28 comment added Ed Morton BEGIN { if(getline == 1) {last = $1+0; c = 1}} - getline is a can of worms, not necessary for this (see awk.freeshell.org/AllAboutGetline), and means you can't use your script for more than one file. Just use a FNR==1 block.
Jun 16, 2019 at 4:34 vote accept N App
Jun 15, 2019 at 22:59 history edited steeldriver CC BY-SA 4.0
added 60 characters in body
Jun 15, 2019 at 22:50 history answered steeldriver CC BY-SA 4.0