Thank you!  I was closer than I thought, but I see your points now.  I 
had to make one change based on my directory structure which I didn't 
catch before.

FileUtils.mv("#{source_file}", 
"#{current_dir}--#{dest_cats}/#{source_file}")

I appreciate the explanation.
Thanks
Mike

>
> require 'fileutils'
> def ins_file_move(instruments, cats)
>
>   instruments.each do |current_dir|
>     Dir.chdir(current_dir)
>     source = Dir.glob('*.xml')
>     cats.each do |dest_cats|
>       source.each do |source_file|
>         if source_file =~ /#{dest_cats}/
>           FileUtils.mv("#{source_file}", "#{dest_cats}/#{source_file}")
>         end
>       end
>     end
>     Dir.chdir("..")
>   end
> end
>
> Michael Hansen

-- 
Posted via http://www.ruby-forum.com/.