I am using Ubuntu with window (WSL). How do I separate my sentence in a newline without executing the command. I have tried shift-Enter, Ctrl-enter, Perl -lne and so on. Please check the attached image to know exactly what I mean.

enter image description here

  • 4
    please fix your question, the screenshot does not show. In General, please don't post screenshots when you could post it as text ... paste text and format as code is usually better)
    – pLumo
    Aug 22 '19 at 13:45
  • The answers below make reasonable assumptions about what you are trying to achieve, but it is not clear from your question what you are trying to do? I do not see the sentence (that you want to split into multiple lines) in the screen shot above. Would you please clarify further by editing your question? If you can give an example of the sentence, how it currently appears, and how you would like it to appear, that will be very helpful in answering your question.
    – PJ Singh
    Aug 22 '19 at 19:41

Add a backslash \ at the end of each line and press Enter. At the last line press Enter (without including a backslash obviously).


This answer assumes you want to have a line break as part of a command argument, so that the command receives it. If you just want to split/wrap a long command line without having the line break appear in any argument, have a look at the other answer.

You can have line breaks as part of a single argument inside 'quoted' strings, like this:

$ echo 'This is some
> multiline argument'

$ represents your normal shell prompt (PS1), whereas > is the secondary prompt (PS2) that indicates you're still editing the same command.

Don't forget the closing quotation mark at the end of your multiline string.

If you want a line break in your argument without breaking your command line, you can also use e.g. $'\n' as a literal line break.


While the previous answers is totally fine, they may not helped you. So if you want to give multi-line input to some program running from a shell (like bash) you have more options (beyond typing the lines one-by-one)

1) Save the line to a file and pipe it as input:

$ cat somefile | ssss-combine -t 3

2) Compose the file with a technique mentioned in previous answers like:

$ echo 'passwd-04-1e8c
> passwd-05-dc8f
> passwd-10-2910' | ssss-combine -t 3

3) Same as 2 in a oneliner:

for i in passwd-04-1e8c passwd-05-dc8f passwd-10-2910;do echo $i;done | ssss-combine -t 3

I have to mention that is not recommended to write secrets (or parts of secrets) in a command line. Try to avoid always this if possible.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.