Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
How can you echo a newline in batch files? | Better HN
How can you echo a newline in batch files?
(opens in new tab)
(stackoverflow.com)
1 points
joseraul
9y ago
2 comments
Share
2 comments
default
newest
oldest
joseraul
OP
9y ago
Bash equivalent is just:
echo $'hello\nworld'
This uses ANSI C quoting
https://www.gnu.org/software/bash/manual/html_node/ANSI_002d...
.
dalke
9y ago
Do I understand correctly that you linked to a SO question about how to have the DOS batch command "echo" emit a newline just so you can point out how to do it in a different shell used primarily on a different OS?
j
/
k
navigate · click thread line to collapse