github.com/benhoyt/goawk@v1.8.1/testdata/t.substr1 (about)

     1  NR % 2 { print substr($0, 0, -1) }