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

Patrick Hochstenbach 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:
> 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/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.uni-bielefeld.de/mailman2/unibi/public/librecat-dev/attachments/20180612/e1661ad2/attachment.asc>

More information about the librecat-dev mailing list