From: Tobias Reif Date: 2002-05-23T02:30:43+09:00 Subject: Re: -e oneliners with File.open Jason Voegele wrote: > Try swapping the single and double quotes. works, thx :) (the aposes need to be escaped for the newline) ruby -e "open('foo.txt','w') do |f| f.write((('x'*10)+\"\n\")*100) end" > Also, you don't need the > semicolons. I know; I just wanted to be friendly to Ruby since it was choking :) Tobi -- http://www.pinkjuice.com/