# Entering a newline in the windows command prompt

**URL:** <https://www.ruby-forum.com/t/entering-a-newline-in-the-windows-command-prompt/150809>\
**Category:** Ruby\
**Created:** [October 13, 2008, 4:53pm UTC](https://www.ruby-forum.com/t/entering-a-newline-in-the-windows-command-prompt/150809 "2008-10-13T16:53:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon780](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/82dd89/32.png) [@simon780](https://www.ruby-forum.com/u/simon780)\
**Post date:** [October 13, 2008, 4:53pm UTC](https://www.ruby-forum.com/t/entering-a-newline-in-the-windows-command-prompt/150809/1 "2008-10-13T16:53:25Z")

</div>

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”]
