Bash equivalent is just:<p><pre><code> echo $'hello\nworld'
</code></pre>
This uses ANSI C quoting <a href="https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html" rel="nofollow">https://www.gnu.org/software/bash/manual/html_node/ANSI_002d...</a> .