[librecat-dev] Columns order in tabular exporters with Catmandu
Patrick.Hochstenbach at UGent.be
Tue Jun 12 16:32:40 CEST 2018
Both the CSV and TSV exporter have the ‘fields’ option. You can give it a list of fields and order to export
# Give colums C , B and A
$ catmandu convert YAML to CSV —field “C,B,A” < data.yml
> On 12 Jun 2018, at 16:25, Jose I. Martin Cuesta <jose.martincuesta at kaust.edu.sa> wrote:
> 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,
> 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/
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 488 bytes
Desc: Message signed with OpenPGP
More information about the librecat-dev