Mercurial > repos > bgruening > text_processing
comparison find_and_replace.xml @ 13:0a8c6b61f0f4 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4f79443517baf378fbfe1f81be361d97f2938601
author | bgruening |
---|---|
date | Wed, 03 Apr 2019 13:56:01 -0400 |
parents | 01ca80da2266 |
children | fb4ff3c42cd3 |
comparison
equal
deleted
inserted
replaced
12:a6f147a050a2 | 13:0a8c6b61f0f4 |
---|---|
1 <tool id="tp_find_and_replace" name="Replace" version="@BASE_VERSION@.1"> | 1 <tool id="tp_find_and_replace" name="Replace" version="@BASE_VERSION@.2"> |
2 <description>parts of text</description> | 2 <description>parts of text</description> |
3 <macros> | 3 <macros> |
4 <import>macros.xml</import> | 4 <import>macros.xml</import> |
5 </macros> | 5 </macros> |
6 <requirements> | 6 <requirements> |
11 perl '$__tool_directory__/find_and_replace' | 11 perl '$__tool_directory__/find_and_replace' |
12 #if $searchwhere.searchwhere_select == "column": | 12 #if $searchwhere.searchwhere_select == "column": |
13 -c $searchwhere.column | 13 -c $searchwhere.column |
14 #end if | 14 #end if |
15 -o $outfile | 15 -o $outfile |
16 $global | |
16 $caseinsensitive | 17 $caseinsensitive |
17 $wholewords | 18 $wholewords |
18 $skip_first_line | 19 $skip_first_line |
19 $is_regex | 20 $is_regex |
20 '$find_pattern' | 21 '$find_pattern' |
39 </valid> | 40 </valid> |
40 </sanitizer> | 41 </sanitizer> |
41 </param> | 42 </param> |
42 <param name="is_regex" type="boolean" checked="false" truevalue="-r" falsevalue="" | 43 <param name="is_regex" type="boolean" checked="false" truevalue="-r" falsevalue="" |
43 label="Find-Pattern is a regular expression" help="see help section for details." /> | 44 label="Find-Pattern is a regular expression" help="see help section for details." /> |
45 | |
46 <param name="global" type="boolean" checked="false" truevalue="-g" falsevalue="" | |
47 label="Replace all occurences of the pattern" /> | |
44 | 48 |
45 <param name="caseinsensitive" type="boolean" checked="false" truevalue="-i" falsevalue="" | 49 <param name="caseinsensitive" type="boolean" checked="false" truevalue="-i" falsevalue="" |
46 label="Case-Insensitive search" help="" /> | 50 label="Case-Insensitive search" help="" /> |
47 | 51 |
48 <param name="wholewords" type="boolean" checked="false" truevalue="-w" falsevalue="" | 52 <param name="wholewords" type="boolean" checked="false" truevalue="-w" falsevalue="" |
69 <test> | 73 <test> |
70 <param name="infile" value="find_and_replace1.txt" /> | 74 <param name="infile" value="find_and_replace1.txt" /> |
71 <param name="find_pattern" value="day" /> | 75 <param name="find_pattern" value="day" /> |
72 <param name="replace_pattern" value="great day" /> | 76 <param name="replace_pattern" value="great day" /> |
73 <param name="is_regex" value="False" /> | 77 <param name="is_regex" value="False" /> |
78 <param name="global" value="true" /> | |
74 <param name="caseinsensitive" value="False" /> | 79 <param name="caseinsensitive" value="False" /> |
75 <param name="wholewords" value="True" /> | 80 <param name="wholewords" value="True" /> |
76 <output name="outfile" file="find_and_replace_results1.txt" /> | 81 <output name="outfile" file="find_and_replace_results1.txt" /> |
77 </test> | 82 </test> |
78 <test> | 83 <test> |