v 1.04
[jalview.git] / forester / ruby / scripts / copy.rb
1 require 'fileutils'
2 Dir.foreach(".") do |f|
3   next if f == '.' or f == '..'
4   if f =~ /^([A-Z0-9]{3,5}).*\..+/
5     tax = $1
6     FileUtils.cp f, "all/" + tax + ".fasta"
7   elsif 
8     puts "ignored " + f.to_s
9   end
10 end