On Mar 25, 4:50=A0pm, John Bartley K7AAY <john.bart...@[EMAIL PROTECTED]
> wrote:
> awk 'ORS=3D%NR%1?",":"\t"' %1.tsv > %1.csv
>
> This line of code, adapted
fromhttp://www.ee.ucl.ac.uk/~hamed/misc/awk1lin=
e.txt
> fails for me while running GNUWIN32 gawk 3.1.0 =A0
There is a bug in the example on this page.
> I am trying to take a three line file and turn it into a one-line, tab-
> separated file, so I can (later on) concatenate multiple files into
> one CSV for import into Excel.
>
> Thank you kindly in advance.
>
Try this, which works for me on Linux: awk 'ORS=3DNR%3?"\t":"\n"'
For Windows environment: the quoting has to be adapted.
Hermann


|