Repository revision
19:12615d397df7

Repository 'text_processing'
hg clone https://toolshed.g2.bx.psu.edu/repos/bgruening/text_processing

Create text file tool metadata
Miscellaneous
with recurring lines
tp_text_file_with_recurring_lines
toolshed.g2.bx.psu.edu/repos/bgruening/text_processing/tp_text_file_with_recurring_lines/9.3+galaxy0
9.3+galaxy0
yes --version | head -n 1
True
Version lineage of this tool (guids ordered most recent to oldest)
toolshed.g2.bx.psu.edu/repos/bgruening/text_processing/tp_text_file_with_recurring_lines/9.3+galaxy0 (this tool)
toolshed.g2.bx.psu.edu/repos/bgruening/text_processing/tp_text_file_with_recurring_lines/1.0.0
tp_text_file_with_recurring_lines
Requirements (dependencies defined in the <requirements> tag set)
name version type
coreutils 9.3 package
Additional information about this tool
#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

    
None
False
Functional tests
name inputs outputs required files
Test-1 token_set_0|line: freedom
name: value
value
Test-2 token_set_0|line: freedom
token_set_1|line: war is over
name: value
value