# HG changeset patch # User bgruening # Date 1546933823 18000 # Node ID a6f147a050a2e733d9d725bc2bf91cb5418d1d98 # Parent 74a8bef53a006d865fa950acd1712ae69c61cb44 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit f47799941f9e11c313b38758bfdaab0ce83844f8 diff -r 74a8bef53a00 -r a6f147a050a2 replace_text_in_column.xml --- a/replace_text_in_column.xml Tue Feb 27 17:15:37 2018 -0500 +++ b/replace_text_in_column.xml Tue Jan 08 02:50:23 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 @@ + - + - + + + + + + + + + + + + +