[librecat-dev] Columns order in tabular exporters with Catmandu

Jose I. Martin Cuesta jose.martincuesta at kaust.edu.sa
Wed Jun 13 07:49:51 CEST 2018


I had tried the fields option, but with a typo.
Now, baby-typing, it worked perfectly.

Thank you both!

	Jose

-----Original Message-----
From: Patrick Hochstenbach [mailto:Patrick.Hochstenbach at UGent.be] 
Sent: Tuesday, June 12, 2018 5:33 PM
To: Jose I. Martin Cuesta <jose.martincuesta at kaust.edu.sa>
Cc: librecat-dev at lists.uni-bielefeld.de
Subject: Re: [librecat-dev] Columns order in tabular exporters with Catmandu

That is minus-minus fields with an “s”

$ catmandu convert YAML to CSV --fields “C,B,A” < data.yml

> On 12 Jun 2018, at 16:25, Jose I. Martin Cuesta <jose.martincuesta at kaust.edu.sa> wrote:
> 
> Hello,
> 
> Is there a way to define the desired columns order for the output with tabular exporters like CSV or TSV?
> All I’m getting is the alphabetical column order (different from the input, which I need to keep).
> 
> Just starting with Catmandu and got stuck here, but it’s impressive what can be done with 5 fix lines. I think I’m falling in love…
> 
> Many thanks and all the best,
> 
>                 Jose
> 
> 
> This message and its contents including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.
> _______________________________________________
> librecat-dev mailing list
> - send list mails to librecat-dev at lists.uni-bielefeld.de
> - to unsubscribe or change options, visit https://lists.uni-bielefeld.de/mailman2/cgi/unibi/listinfo/librecat-dev
> - project website: http://librecat.org/




More information about the librecat-dev mailing list