Import csvs

This commit is contained in:
Willem Dantuma
2023-11-27 20:24:22 +01:00
parent f93eaa667c
commit f1d9c5f165
12 changed files with 45787 additions and 2 deletions

4
import/convert.sh Normal file
View File

@@ -0,0 +1,4 @@
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'