ubuntu-buildroot/output/build/host-gawk-5.2.0/awklib/eg/misc/simple-csv.awk

11 lines
147 B
Awk

BEGIN {
FPAT = "([^,]+)|(\"[^\"]+\")"
}
{
print "NF = ", NF
for (i = 1; i <= NF; i++) {
printf("$%d = <%s>\n", i, $i)
}
}