computing
  • 2

Solved Newline Character In DOS Batch Files=?

  • 2

I want to create a variable with some text in which i want to use line breaks at one or more places. I wanted to know what character (or character combination) do we use for inserting a newline character.

Share

1 Answer

  1. Looks like the trick only sets LF, but not CR. The text file *does* have linebreaks, but it is unix formatted(no CR). You could use more to convert:

    more lfonly.txt > crlf.txt
    

    • 0