# HG changeset patch # User bgruening # Date 1604257598 0 # Node ID 71410ad19057bd3aed0e027238112703a0c034d2 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128" diff -r 000000000000 -r 71410ad19057 add_line_to_file.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/add_line_to_file.xml Sun Nov 01 19:06:38 2020 +0000 @@ -0,0 +1,50 @@ + + writes a line of text at the begining or end of a text file. + + coreutils + + + > '$outfile' && cat '$infile' >> '$outfile' + #else + cat '$infile' >> '$outfile' && echo '$text_input' >> '$outfile' + #end if + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 000000000000 -r 71410ad19057 test-data/add_line.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/add_line.txt Sun Nov 01 19:06:38 2020 +0000 @@ -0,0 +1,2 @@ +line 1 +line 2 diff -r 000000000000 -r 71410ad19057 test-data/add_line_result1.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/add_line_result1.txt Sun Nov 01 19:06:38 2020 +0000 @@ -0,0 +1,3 @@ +header +line 1 +line 2 diff -r 000000000000 -r 71410ad19057 test-data/add_line_result2.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/add_line_result2.txt Sun Nov 01 19:06:38 2020 +0000 @@ -0,0 +1,3 @@ +line 1 +line 2 +footer