mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-01-17 13:38:38 +01:00
Merge pull request #3906 from lemonez/patch-1
[bash/en] fix small omission
This commit is contained in:
commit
1d829ae3f9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user