comparison find_and_replace @ 14:fb4ff3c42cd3 draft

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 09b22cceacb34dd4c6c1b42890f93232df128208"
author bgruening
date Sat, 21 Mar 2020 13:49:11 -0400
parents 5314e5d6f040
children
comparison
equal deleted inserted replaced
13:0a8c6b61f0f4 14:fb4ff3c42cd3
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 ;