annotate cpo_combine.sh @ 13:a14b12a71a53 draft

planemo upload
author jjjjia
date Sat, 25 Aug 2018 20:56:37 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13
a14b12a71a53 planemo upload
jjjjia
parents:
diff changeset
1 head -1 ${1[1]} > combined.tsv
a14b12a71a53 planemo upload
jjjjia
parents:
diff changeset
2
a14b12a71a53 planemo upload
jjjjia
parents:
diff changeset
3 IFS=',' read -ra ADDR <<< "$1" #hax to read in a csv
a14b12a71a53 planemo upload
jjjjia
parents:
diff changeset
4
a14b12a71a53 planemo upload
jjjjia
parents:
diff changeset
5 head -1 ${ADDR[0]} > ./combined.tsv
a14b12a71a53 planemo upload
jjjjia
parents:
diff changeset
6 for i in "${ADDR[@]}"; do
a14b12a71a53 planemo upload
jjjjia
parents:
diff changeset
7 echo $i
a14b12a71a53 planemo upload
jjjjia
parents:
diff changeset
8 tail -1 $i >> ./combined.tsv
a14b12a71a53 planemo upload
jjjjia
parents:
diff changeset
9 done