Join Nostr
2025-03-09 09:14:22 UTC

Digital Mark λ ☕️ 🌮 🚀 🌗 on Nostr: Doing some table generation in awk, and is there an easier way to do "all fields n to ...

Doing some table generation in awk, and is there an easier way to do "all fields n to NF" than this?

function combine(combn, combs) {
for (; combn<=NF; ++combn) {
combs=combs "\t" $(combn)
}
return combs
}

I could use printf on the fragments, but the annoyance is that loop, instead of
(string-join (cddr fields) "\t")
or whatever.

#awk #unix #codegolf