From: Oliver Schad Date: 2010-11-29T10:40:14+09:00 Subject: Re: How to use Ruby like shell script? Stu wrote: > Right on. looks like String#split will take regular expressions. > > This is one deals with white space issues by splitting on the newline > char \n in filenames: > > x = `ls`.split(/\n/) File names can contain new lines. Regards Oli -- Man darf ruhig intelligent sein, man muss sich nur zu helfen wissen