From fb76c0b7fed31d7630023b85453a38a01802d026 Mon Sep 17 00:00:00 2001 From: lemonez <36384768+lemonez@users.noreply.github.com> Date: Thu, 16 Apr 2020 17:37:30 -0700 Subject: fix small typo pass -e flag to echo to interpret escape characters correctly --- bash.html.markdown | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bash.html.markdown b/bash.html.markdown index 856db706..00ee0632 100644 --- a/bash.html.markdown +++ b/bash.html.markdown @@ -225,7 +225,9 @@ cat file.txt # We can also read the file using `cat`: Contents=$(cat file.txt) -echo "START OF FILE\n$Contents\nEND OF FILE" # "\n" prints a new line character +# "\n" prints a new line character +# "-e" to interpret the newline escape characters as escape characters +echo -e "START OF FILE\n$Contents\nEND OF FILE" # => START OF FILE # => [contents of file.txt] # => END OF FILE -- cgit v1.2.3