comparison concatenate_ordered.bash @ 0:fd3ea97a96bc draft

planemo upload commit 103cb51ec368438642504c3f98b76c363db478bb
author kyost
date Sat, 28 Apr 2018 15:07:26 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:fd3ea97a96bc
1 #!/bin/bash
2
3 input1=$1
4 output1=$2
5
6 echo $input1 |tr , '\n' > input_series
7
8 cat input_series | while read file
9 do
10 cat $file >> count_list
11 done
12
13 sort -k1 count_list > sorted_list
14 cut -f 2 sorted_list > $output1
15
16 rm input_series
17 rm count_list
18 rm sorted_list