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

Changeset 13:0a8c6b61f0f4 (2019-04-03)
Previous changeset 12:a6f147a050a2 (2019-01-08) Next changeset 14:fb4ff3c42cd3 (2020-03-21)
Commit message:
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4f79443517baf378fbfe1f81be361d97f2938601
modified:
awk.xml
find_and_replace.xml
test-data/find_and_replace1.txt
test-data/find_and_replace_results1.txt
b
diff -r a6f147a050a2 -r 0a8c6b61f0f4 awk.xml
--- 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=' '
b
diff -r a6f147a050a2 -r 0a8c6b61f0f4 find_and_replace.xml
--- 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
b
@@ -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" />
b
diff -r a6f147a050a2 -r 0a8c6b61f0f4 test-data/find_and_replace1.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
b
@@ -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!
b
diff -r a6f147a050a2 -r 0a8c6b61f0f4 test-data/find_and_replace_results1.txt
--- 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
b
@@ -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!