1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-05 14:27:51 +02:00

Merge pull request #3906 from lemonez/patch-1

[bash/en] fix small omission
This commit is contained in:
Max Schumacher
2020-07-07 12:39:53 +02:00
committed by GitHub

View File

@@ -230,7 +230,9 @@ cat file.txt
# We can also read the file using `cat`: # We can also read the file using `cat`:
Contents=$(cat file.txt) 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 # => START OF FILE
# => [contents of file.txt] # => [contents of file.txt]
# => END OF FILE # => END OF FILE