Re: [FR] ob-awk.el specifying a delimeter argument in for output

2023-03-06 Thread Max Nikulin
On 05/03/2023 16:50, Jeremie Juste wrote: #+begin_src awk :in-file test.csv :cmd-line -F "," {print $0} #+end_src Notice that awk has Output Field Separator that is space by default and may be set using -v OFS=; (or --assign) command line options. -F option sets input field separator FS varia

Re: [FR] ob-awk.el specifying a delimeter argument in for output

2023-03-05 Thread Jeremie Juste
Hello Ihor, >> I guess we might add an option to tell Org which separator to use when >> parsing output when :results table header argument is provided (see 16.6 >> Results of Evaluation section of Org manual). However, you can achieve >> the same now, using :post header argument, replacing the

Re: [FR] ob-awk.el specifying a delimeter argument in for output

2023-03-05 Thread Jeremie Juste
Hello Ihor, > Org knows nothing about your output, by default. > You could as well do something like {print $1+-+$2+-+$3} > What should Org do in such case? > > Currently, Org tries to guess the type of arbitrary output. If the > output looks like a table, with fields separated by tabs, commas,

Re: [FR] ob-awk.el specifying a delimeter argument in for output

2023-03-05 Thread Ihor Radchenko
Jeremie Juste writes: > * Request > > However If I have a csv file with say semi column delimited values (;) > I don't get the org table as output > > #+begin_src awk :in-file test1.csv :cmd-line -F ";" > {print $0} > #+end_src > > #+RESULTS: > : 123;0;123 > In my opinion, this could be fixed i