Mercurial > repos > kyost > atac_primer_tool
diff concatenate_ordered.bash @ 0:fd3ea97a96bc draft
planemo upload commit 103cb51ec368438642504c3f98b76c363db478bb
author | kyost |
---|---|
date | Sat, 28 Apr 2018 15:07:26 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/concatenate_ordered.bash Sat Apr 28 15:07:26 2018 -0400 @@ -0,0 +1,18 @@ +#!/bin/bash + +input1=$1 +output1=$2 + +echo $input1 |tr , '\n' > input_series + +cat input_series | while read file +do + cat $file >> count_list +done + +sort -k1 count_list > sorted_list +cut -f 2 sorted_list > $output1 + +rm input_series +rm count_list +rm sorted_list