cleand and with-nth

This commit is contained in:
2025-06-05 20:05:58 +02:00
parent 6973fb9f04
commit aaf3c56565
4 changed files with 22 additions and 28 deletions

View File

@@ -11,7 +11,7 @@ NR == FNR {
if (from[FNR] > to[FNR])
print "FNR", FNR, ":", from[FNR],"-",to[FNR], " ",$0;
for(i=from[FNR]; i<=to[FNR]; i++) {
week[i] = week[i] ? week[i] ";" $4 : $4
week[i] = week[i] " " $5
}
}
END { for (i in week) print i, week[i]; }
END { for (i in week) print i week[i]; }