From: Le Wang (at@) Date: 2002-05-25T15:57:20+09:00 Subject: eccentric filenames Hi, I can't seem to get around this little problem. I have an array with "test #01.txt", and "test #02.txt". These strings represent filenames. I want to use these filenames for a command to be passed to be executed via system(), for example, to cat these two files into a third file named "test #03.txt" I tried the following: #!/usr/bin/env ruby class Array def dump collect { |i| i.dump } end end arry = ["test #01.txt", "test #02.txt"] system ("cat #{arry.dump.join(" ")} > \"test #02.txt\"") Can someone offer an elegant solution? Thanks, Le