# HG changeset patch # User bgruening # Date 1658237120 0 # Node ID ff2a81aa3f086739f44fff516a2566c90821c65b # Parent d4b5b70e82cb1cdc995ef30ed36f9bdc4646430d planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/split_file_on_column commit 6a2deb2f38472a2845123bd54e73b6bd115b3a0b diff -r d4b5b70e82cb -r ff2a81aa3f08 split_file_on_column.xml --- a/split_file_on_column.xml Mon Jul 04 12:26:46 2022 +0000 +++ b/split_file_on_column.xml Tue Jul 19 13:25:20 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +