Mercurial > repos > jjjjia > cpo_prediction
diff cpo_combine.sh @ 13:a14b12a71a53 draft
planemo upload
author | jjjjia |
---|---|
date | Sat, 25 Aug 2018 20:56:37 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cpo_combine.sh Sat Aug 25 20:56:37 2018 -0400 @@ -0,0 +1,9 @@ +head -1 ${1[1]} > combined.tsv + +IFS=',' read -ra ADDR <<< "$1" #hax to read in a csv + +head -1 ${ADDR[0]} > ./combined.tsv +for i in "${ADDR[@]}"; do + echo $i + tail -1 $i >> ./combined.tsv +done