annotate cpo_combiner.sh @ 16:1642e3d402f8 draft

planemo upload
author jjjjia
date Sun, 26 Aug 2018 22:00:43 -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