[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Entering a newline in the windows command prompt

bahuvrihi

10/13/2008 2:49:00 PM

Took me a while to figure this out and thought it might be useful.
Basically, you use a caret and hit enter twice. It goes like this:

% ruby -e 'puts ARGV.inspect' 'line one^
More?
More? line two'
["line one\nline two"]