summaryrefslogtreecommitdiffhomepage
path: root/bash.html.markdown
diff options
context:
space:
mode:
authorMax Schumacher <maximilianbschumacher@gmail.com>2020-07-07 12:39:53 +0200
committerGitHub <noreply@github.com>2020-07-07 12:39:53 +0200
commit1d829ae3f95cffd78f9996a5e0e548dd96ffac3d (patch)
treef56789d5cf643e3cb423fc76fdba39ee15128d84 /bash.html.markdown
parent0215666e15d8694845981b832ea10f28245bb8a4 (diff)
parentfb76c0b7fed31d7630023b85453a38a01802d026 (diff)
Merge pull request #3906 from lemonez/patch-1
[bash/en] fix small omission
Diffstat (limited to 'bash.html.markdown')
-rw-r--r--bash.html.markdown4
1 files changed, 3 insertions, 1 deletions
diff --git a/bash.html.markdown b/bash.html.markdown
index 0adc2efe..59aeaaf4 100644
--- a/bash.html.markdown
+++ b/bash.html.markdown
@@ -230,7 +230,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