Mercurial > repos > bgruening > text_processing
diff grep.xml @ 19:12615d397df7 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
author | bgruening |
---|---|
date | Thu, 29 Feb 2024 22:15:20 +0000 |
parents | 74a8bef53a00 |
children | fbf99087e067 |
line wrap: on
line diff
--- a/grep.xml Sat Oct 08 21:01:33 2022 +0000 +++ b/grep.xml Thu Feb 29 22:15:20 2024 +0000 @@ -1,11 +1,12 @@ -<tool id="tp_grep_tool" name="Search in textfiles" version="@BASE_VERSION@.1"> +<tool id="tp_grep_tool" name="Search in textfiles" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> <description>(grep)</description> <macros> <import>macros.xml</import> </macros> + <expand macro="creator"/> <requirements> - <requirement type="package" version="2.14">grep</requirement> - <requirement type="package" version="4.4">sed</requirement><!-- for ansi2html.sh --> + <requirement type="package" version="3.11">grep</requirement> + <requirement type="package" version="4.8">sed</requirement><!-- for ansi2html.sh --> </requirements> <version_command>grep --version | head -n 1</version_command> <command> @@ -19,8 +20,8 @@ -B $lines_before $invert $case_sensitive - -- "${url_paste}" - '${infile}' | $__tool_directory__/ansi2html.sh > "${output}" + -- '${url_paste}' + '${infile}' | '$__tool_directory__/ansi2html.sh' > '${output}' #else: grep $regex_type @@ -28,8 +29,8 @@ -B $lines_before $invert $case_sensitive - -- "${url_paste}" - '${infile}' | grep -v "^--$" > "${output}" + -- '${url_paste}' + '${infile}' | grep -v "^--$" > '${output}' #end if ]]> </command> @@ -42,9 +43,9 @@ </param> <param name="regex_type" type="select" label="Type of regex"> - <option value="-G">Basic</option> - <option value="-P" selected="true">Perl</option> - <option value="-E">Extended (egrep)</option> + <option value="-G">Basic (-G)</option> + <option value="-P" selected="true">Perl (-P)</option> + <option value="-E">Extended (egrep -E)</option> </param> <param name="url_paste" type="text" label="Regular Expression" help="See below for more details"> @@ -113,16 +114,16 @@ <param name="color" value="NOCOLOR" /> <output name="output" file="egrep_results1.txt" /> </test> - <test><!-- same regex as egrep test, but different outcome with basic regex --> + <test><!-- tests basic regex; + must be backslashed to match --> <param name="infile" value="egrep1.txt" /> <param name="case_sensitive" value="case sensitive" /> <param name="regex_type" value="-G" /> <param name="invert" value="" /> - <param name="url_paste" value="[^ ]+" /> + <param name="url_paste" value="[^ ]\+" /> <param name="lines_before" value="0" /> <param name="lines_after" value="0" /> <param name="color" value="NOCOLOR" /> - <output name="output" file="egrep_results2.txt" /> + <output name="output" file="egrep_results1.txt" /> </test> </tests> <help> @@ -187,7 +188,6 @@ - **$** matches the end of a line or string. - **\|** Separates alternate possibilities. -@REFERENCES@ ]]> </help> <expand macro="citations" />