TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How can you echo a newline in batch files?

1 pointsby joseraulover 8 years ago

1 comment

joseraulover 8 years ago
Bash equivalent is just:<p><pre><code> echo $&#x27;hello\nworld&#x27; </code></pre> This uses ANSI C quoting <a href="https:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;bash&#x2F;manual&#x2F;html_node&#x2F;ANSI_002dC-Quoting.html" rel="nofollow">https:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;bash&#x2F;manual&#x2F;html_node&#x2F;ANSI_002d...</a> .
评论 #12359187 未加载