Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl -w
    use strict;
    ...
    
    edit_file_lines { m/\>/ && s/(\S+)\s.*/$1/ } $inFile;
    __END__
    
  2. or download this
    #!/usr/bin/env perl -w
    use strict;
    ...
      push ( @keep, ($line =~ /\>/ ? (split(/\s/, $line))[0] : $line));
    }
    write_file( $outFile, join("\n", @keep, '') );