Import csvs
This commit is contained in:
4
import/convert.sh
Normal file
4
import/convert.sh
Normal 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'
|
||||
Reference in New Issue
Block a user