Well, creating a gitclone from the xsv project and compiling it shows problems ahead including severe errors leading to total failure so I cannot hope to write a length command for it, without having to totally redo the whole shebang which is a lot of work.

I am taking a look at gawk now as FPAT offers a solution for embedded commas in a csv field, when the delimiter character is a comma.

BEGIN { FPAT = "([^,]*)|(\"[^\"]+\")" }

// { print "NF", $0 }

----------

Can anyone come up with a way to specify the FS character to other than a comma? man gawk suggests that the field separator can be set with the -F flag, but how would the gawk file change above?

I have tried

BEGIN { FPAT = "([^FS]*)|(\"[^\"]+\")" }

// { print "NF", $0 }

But that is NOT working as I hoped.

Reply via email to