Re3gistry/import/convert.sh

4 lines
330 B
Bash
Raw Normal View History

2023-11-27 19:24:22 +00:00
head -1 CL021.csv > CL020.csv
cat generated_codelist.csv|grep cl020|cut -d';' -f4|jq -r '[.code,"nl",.unit // .description, .description] | @tsv'|sed 's/\t/|/g' >> CL020.csv
cat generated_codelist.csv|grep cl022|cut -d';' -f4|jq -r '[.code,"nl",.description, .description, .n, .p, .k, .composition,.type] | @tsv'|sed 's/\t/|/g'