# HG changeset patch # User bgruening # Date 1546340473 18000 # Node ID bed2226b90f733d5076f23f78ba82e1594960bc2 # Parent 1e974b82380db5ff2412d7ea000611841e42ad3c planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 29899be24c03f631ef3be107fd60e9f898806321 diff -r 1e974b82380d -r bed2226b90f7 replace_text_in_column.xml --- a/replace_text_in_column.xml Tue Feb 27 17:10:53 2018 -0500 +++ b/replace_text_in_column.xml Tue Jan 01 06:01:13 2019 -0500 @@ -1,4 +1,4 @@ - + in a specific column macros.xml @@ -13,41 +13,62 @@ -v OFS="\t" -v FS="\t" --re-interval - --sandbox '{ \$$column = gensub( /$find_pattern/, "$replace_pattern", "g", \$$column ) ; print \$0 ; }' + --sandbox + '{ + #for $replacement in $replacements: + \$$replacement.column = gensub( /$replacement.find_pattern/, "$replacement.replace_pattern", "g", \$$replacement.column ) ; + #end for + print \$0 ; }' "$infile" > "$outfile" ]]> - + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + in entire line - macros.xml + macros.xml sed @@ -9,17 +9,21 @@ sed --version | head -n 1 '$outfile' ]]> - + + @@ -31,7 +35,7 @@ - + @@ -46,17 +50,30 @@ + - + - + + + + + + + + + + + + +