#!/usr/bin/ruby -w # John Prince # 2006-08-24 # takes multiple files and converts them into mzXML EXECUTE_MZXML_CONVERTER = "t2x"; if ARGV.size == 0 puts "usage: raw2mzXML.pl file1.RAW file2.RAW ..." puts " [or raw2mzXML.pl *.RAW]" exit end files = ARGV.to_a files.each do |file| puts "******************************************" puts "About to convert #{file}" system "#{EXECUTE_MZXML_CONVERTER} #{file}" puts "******************************************" end