comparison find_and_replace @ 21:0e3b611245f7 draft

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 9c4d4fe09cbbd818532d793d01d1cb16edbd496b-dirty"
author bgruening
date Sun, 15 Mar 2020 22:58:18 +0000
parents ec66f9d90ef0
children
comparison
equal deleted inserted replaced
20:1aa30b2c73c9 21:0e3b611245f7
63 # Find & replace in specific column 63 # Find & replace in specific column
64 64
65 $perl_program = <<EOF; 65 $perl_program = <<EOF;
66 while ( <STDIN> ) { 66 while ( <STDIN> ) {
67 chomp ; 67 chomp ;
68 my \@columns = split ; 68 my \@columns = split /\t/;
69 69
70 #not enough columns in this line - skip it 70 #not enough columns in this line - skip it
71 next if ( \@columns < $find_in_specific_column ) ; 71 next if ( \@columns < $find_in_specific_column ) ;
72 72
73 \$columns [ $find_in_specific_column - 1 ] =~ $regex_string ; 73 \$columns [ $find_in_specific_column - 1 ] =~ $regex_string ;