annotate cpo_combiner.sh @ 25:573136f142b6 draft

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