From: Robert Klemme Date: 2010-11-29T17:19:41+09:00 Subject: Re: How to use Ruby like shell script? On Mon, Nov 29, 2010 at 4:20 AM, Stu wrote: > using tr (both in ruby and your shell) should help dealing with such > silliness both going in and also going out if such an extreme case > exists. > > Oli what's your shell scripting example? > > > On Sun, Nov 28, 2010 at 7:40 PM, Oliver Schad > wrote: >> File names can contain new lines. This whole argument of yours just proves my point that the silliness is actually using "ls" from a Ruby script when there are Dir.glob, Dir[], Find.find, File.stat and the like in Ruby. Forking another process for this is slow and error prone. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/