From: nobu.nokada@... Date: 2002-05-26T21:59:59+09:00 Subject: Re: eccentric filenames Hi, At Sat, 25 May 2002 15:57:20 +0900, Le Wang wrote: > arry = ["test #01.txt", "test #02.txt"] > > system ("cat #{arry.dump.join(" ")} > \"test #02.txt\"") The redirect clobbers "test #02.txt" before cat. content = arry.each {|file| open(file) {|file| file.read}}.join open("test #02.txt", "w") {|file| file.write(content)} -- Nobu Nakada