Echo newline in Bash prints literal \\n - Stack Overflow It is interpreted as a separate argument to the program, and the program itself may display that argument on a new line, but that doesn't mean that it was converted to \n at any point and is entirely dependent on the program
bash - How can I insert a new line in a Linux shell script? - Stack . . . The simplest way to insert a new line between echo statements is to insert an echo without arguments, for example: echo echo Snapshot created That is, echo without any arguments will print a blank line Another alternative to use a single echo statement with the -e flag and embedded newline characters \n:
Insert Newline in Shell Command | Baeldung on Linux In this tutorial, we discuss interactively-typed shell commands and how to insert a manual newline in the middle of a command First, we go over the difference between adding a newline and submitting a command After that, we talk about automatic newline insertion based on syntax
Bash Cheatsheet - Linuxize Quick reference for Bash shell scripting Script Basics Start every Bash script with these fundamentals
How to add newlines into variables in bash script When using a bash script to composite a string that gets automatically copied onto the clipboard for subsequent pasting elsewhere, this approach worked for adding newlines in the resulting output