Mercurial > repos > bgruening > text_processing
changeset 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 | a6f147a050a2 |
children | fb4ff3c42cd3 |
files | awk.xml find_and_replace.xml test-data/find_and_replace1.txt test-data/find_and_replace_results1.txt |
diffstat | 4 files changed, 9 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/awk.xml Tue Jan 08 02:50:23 2019 -0500 +++ b/awk.xml Wed Apr 03 13:56:01 2019 -0400 @@ -9,6 +9,7 @@ <version_command>awk --version | head -n 1</version_command> <command> <![CDATA[ + env -i awk --sandbox -v FS=' '
--- a/find_and_replace.xml Tue Jan 08 02:50:23 2019 -0500 +++ b/find_and_replace.xml Wed Apr 03 13:56:01 2019 -0400 @@ -1,4 +1,4 @@ -<tool id="tp_find_and_replace" name="Replace" version="@BASE_VERSION@.1"> +<tool id="tp_find_and_replace" name="Replace" version="@BASE_VERSION@.2"> <description>parts of text</description> <macros> <import>macros.xml</import> @@ -13,6 +13,7 @@ -c $searchwhere.column #end if -o $outfile + $global $caseinsensitive $wholewords $skip_first_line @@ -42,6 +43,9 @@ <param name="is_regex" type="boolean" checked="false" truevalue="-r" falsevalue="" label="Find-Pattern is a regular expression" help="see help section for details." /> + <param name="global" type="boolean" checked="false" truevalue="-g" falsevalue="" + label="Replace all occurences of the pattern" /> + <param name="caseinsensitive" type="boolean" checked="false" truevalue="-i" falsevalue="" label="Case-Insensitive search" help="" /> @@ -71,6 +75,7 @@ <param name="find_pattern" value="day" /> <param name="replace_pattern" value="great day" /> <param name="is_regex" value="False" /> + <param name="global" value="true" /> <param name="caseinsensitive" value="False" /> <param name="wholewords" value="True" /> <output name="outfile" file="find_and_replace_results1.txt" />
--- a/test-data/find_and_replace1.txt Tue Jan 08 02:50:23 2019 -0500 +++ b/test-data/find_and_replace1.txt Wed Apr 03 13:56:01 2019 -0400 @@ -1,5 +1,1 @@ -I have a dream that one day this nation will rise up, and live out the true meaning of its creed: ‘We hold these truths to be self-evident: that all men are created equal.’ -I have a dream that one day on the red hills of Georgia the sons of former slaves and the sons of former slave owners will be able to sit down together at a table of brotherhood. -I have a dream that one day even the state of Mississippi, a state sweltering with the heat of injustice and sweltering with the heat of oppression, will be transformed into an oasis of freedom and justice. -I have a dream that my four little children will one day live in a nation where they will not be judged by the color of their skin but by the content of their character. -I have a dream today! +I have a dream that one day this nation will rise up, and live out the true meaning of its creed: ‘We hold these truths to be self-evident: that all men are created equal.’ I have a dream that one day on the red hills of Georgia the sons of former slaves and the sons of former slave owners will be able to sit down together at a table of brotherhood. I have a dream that one day even the state of Mississippi, a state sweltering with the heat of injustice and sweltering with the heat of oppression, will be transformed into an oasis of freedom and justice. I have a dream that my four little children will one day live in a nation where they will not be judged by the color of their skin but by the content of their character. I have a dream today!
--- a/test-data/find_and_replace_results1.txt Tue Jan 08 02:50:23 2019 -0500 +++ b/test-data/find_and_replace_results1.txt Wed Apr 03 13:56:01 2019 -0400 @@ -1,5 +1,1 @@ -I have a dream that one great day this nation will rise up, and live out the true meaning of its creed: ‘We hold these truths to be self-evident: that all men are created equal.’ -I have a dream that one great day on the red hills of Georgia the sons of former slaves and the sons of former slave owners will be able to sit down together at a table of brotherhood. -I have a dream that one great day even the state of Mississippi, a state sweltering with the heat of injustice and sweltering with the heat of oppression, will be transformed into an oasis of freedom and justice. -I have a dream that my four little children will one great day live in a nation where they will not be judged by the color of their skin but by the content of their character. -I have a dream today! +I have a dream that one great day this nation will rise up, and live out the true meaning of its creed: ‘We hold these truths to be self-evident: that all men are created equal.’ I have a dream that one great day on the red hills of Georgia the sons of former slaves and the sons of former slave owners will be able to sit down together at a table of brotherhood. I have a dream that one great day even the state of Mississippi, a state sweltering with the heat of injustice and sweltering with the heat of oppression, will be transformed into an oasis of freedom and justice. I have a dream that my four little children will one great day live in a nation where they will not be judged by the color of their skin but by the content of their character. I have a dream today!