Catmandu

From BITPlan cr Wiki
Revision as of 10:54, 6 March 2023 by Wf (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Installation

sudo apt-get install libcatmandu-perl libcatmandu-sru-perl cpanminus
sudo cpanm Catmandu::PICA

CEUR-WS example

#!/bin/bash
# WF 2022-08-27
# see https://github.com/WolfgangFahl/pyCEURmake/issues/26
now=$(date -I)
ci -l -m"automatic check in $now" ceurws.pica
catmandu convert kxp --query 'pica.1001="b" and pica.1045="fam" and pica.1049="669696374"' to pp | picadata -p 003@,036E,017G > ceurws.pica
ci -l -m"automatic check in $now" ceurws.pica