Did you look at this at all? https://www.gnu.org/software/gawk/manual/gawk.html
It is similar to the original book, which I have on my shelf. On Fri, Nov 19, 2021 at 10:54 AM Rich Shepard <[email protected]> wrote: > > On Fri, 19 Nov 2021, Robert Citek wrote: > > > So you want ‘NR > 1’ to be a pattern, but you have it as an action. > > Your code needs to look more like this … > > BEGIN { FS = ","; OFS = "," } > > NR > 1 { print $1, $2, $3, $4, $5, $6, $7, $8 "chl-a", $9, "ug/l" } > > Robert, > > That does make sense, but none of the examples I found on the Web used it > like that. Each page presented the pattern as a separate line in the script. > > Thanks, > > Rich
