# HG changeset patch # User bgruening # Date 1400169030 14400 # Node ID f034a9d33aca98a602b999e215ef5ad463b7acb7 Uploaded diff -r 000000000000 -r f034a9d33aca recurring_lines.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/recurring_lines.xml Thu May 15 11:50:30 2014 -0400 @@ -0,0 +1,61 @@ + + with recurring lines + + + #for $token in $token_set: + #if str($token.repeat_select.repeat_select_opts) == 'user': + times=#echo $token.repeat_select.times#; + #else: + times=`wc -l $token.repeat_select.infile | awk '{print $1}'`; + #end if + + yes -- "${token.line}" 2>/dev/null | head -n \$times >> $outfile; + #end for + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +.. class:: infomark + +**What it does** + +This tool creates a text file with recurring lines. You can specify a bunch of characters or entire sentences. +The entire string will be printed X times separated by a line break. X can be either given by the use as a number or calculated by a given file. +In case the user provides a file, the line number will be used as X. + + +**References** + +Bjoern A. Gruening: https://github.com/bgruening/galaxytools/ + + +