annotate cpo_combiner.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 #!/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