Closed falloutphil closed 4 years ago
Hi,
More a feature request. When dealing with CSV files it's usual in AWK to set the FPAT variable to awk -vFPAT='([^,]*)|("[^"]+")'.
awk -vFPAT='([^,]*)|("[^"]+")'
This allows us to deal with CSV where cells contain commas that are not separators.
Any chance of implementing this for mawk? Or any other way of achieving the same ends?
Thanks!
That's a gawk feature, not present in POSIX or other implementations.
You can see this in the manpage, shortly after this comment: Gawk has a too-large number of extensions to POSIX awk.
Gawk has a too-large number of extensions to POSIX awk.
Hi,
More a feature request. When dealing with CSV files it's usual in AWK to set the FPAT variable to
awk -vFPAT='([^,]*)|("[^"]+")'
.This allows us to deal with CSV where cells contain commas that are not separators.
Any chance of implementing this for mawk? Or any other way of achieving the same ends?
Thanks!