ThomasDickey / original-mawk

bug-reports for mawk (originally on GoogleCode)
http://invisible-island.net/mawk/mawk.html
17 stars 2 forks source link

FPAT variable not available #61

Closed falloutphil closed 4 years ago

falloutphil commented 5 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='([^,]*)|("[^"]+")'.

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!

ThomasDickey commented 4 years ago

That's a gawk feature, not present in POSIX or other implementations.

ThomasDickey commented 4 years ago

You can see this in the manpage, shortly after this comment: Gawk has a too-large number of extensions to POSIX awk.