linelog csv quoting problem

Alan DeKok aland at deployingradius.com
Thu Jul 14 14:45:12 CEST 2016


On Jul 14, 2016, at 6:46 AM, Adamczak Krzysztof <kradamcz at gmail.com> wrote:
> It works great - the only problem is that I want to use double quotes
> when there's attribute and don't use them when attribute is not
> present.

  You'll need to write code to do that.  There isn't really any way to do it automatically in unlang.

  Or, live with empty double quotes, and post-process the CSV file to remove them:

$ sed 's/,""/,/g;s/"",/,/g;' < foo.csv > bar.csv

  Alan DeKok.




More information about the Freeradius-Users mailing list