I think i'm getting closer, but I just need a little help getting over 
the top. I got

require 'fileutils'

directories = Array.new
Dir.new(Dir.pwd).entries.each { |dir| directories.push(dir) if 
File.directory?(dir) }

directories.each do |dir|
  next if dir.eql?(".")
  next if dir.eql?("..")
  Dir.chdir(dir)
  Dir.glob("*.{jpg,gif}").each { |pic| FileUtils.mv(pic, 
"/shared/public/images")}
end

but still not quite right. Any other suggestions?


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