How can you you insert a newline from your batch file output?
I want to do something like:
> echo hello\nworld
Which would output:
hello
world
How can you you insert a newline from your batch file output?
I want to do something like:
> echo hello\nworld
Which would output:
hello
world
You can use
@echo
( @echo + [space] + [insecable space] )Note: The insecable space can be obtained with Alt+0160
Hope it helps :)
[edit] Hmm you're right, I needed it in a Makefile, it works perfectly in there. I guess my answer is not adapted for batch files... My bad.
There is a standard feature
echo:
in cmd/bat-files to write blank line, which emulates a new line in your cmd-output:Output of cited above cmd-file:
Just like Grimtron suggests - here is a quick example to define it:
Output
You can also do like this,
The output will be,
Note that when this is put in a batch file, '%' shall be doubled.
If you need to put results to a file, you can use
I can't make it any simpler than: