1 2 3 4 5 6 7 8 9
require 'Fileutils' include FileUtils Dir.chdir "/home" (1..9).each{|i| d1="/home/unit#{i}/new_word/sound/" d2="/home/new#{i}/new_word/sound/" mkpath d2 cp(d1,d2) }