# HG changeset patch # User bgruening # Date 1658237089 0 # Node ID 46075dd1d8154a7d619b21855d5b13128517b0f3 # Parent 84a32a8409deca05e8788cda23065f1924bc37d3 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/split_file_on_column commit 6a2deb2f38472a2845123bd54e73b6bd115b3a0b diff -r 84a32a8409de -r 46075dd1d815 split_file_on_column.xml --- a/split_file_on_column.xml Mon Jul 04 12:26:15 2022 +0000 +++ b/split_file_on_column.xml Tue Jul 19 13:24:49 2022 +0000 @@ -1,14 +1,14 @@ - + - gawk + gawk f} {print >> f}' $infile + awk -F '\t' 'NR==1{hdr=$0;next}f!="tmp_out/"\$$column".$infile.ext"{if(f) close(f); f="tmp_out/"\$$column".$infile.ext"}; {if (!seen[f]++) print hdr>f; print >> f}' $infile #else - awk -F'\t' '{print > "tmp_out/"\$$column".$infile.ext" }' '$infile' + awk -F'\t' '{print >> "tmp_out/"\$$column".$infile.ext" }' '$infile' #end if ]]> @@ -80,6 +80,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +