mirror of
https://github.com/xmengnet/the-art-of-command-line.git
synced 2024-12-24 10:36:30 +08:00
Shorten language on heredocs.
This commit is contained in:
parent
01cb49ff90
commit
1178af6816
1 changed files with 4 additions and 4 deletions
|
@ -156,11 +156,11 @@ Notes:
|
|||
}
|
||||
```
|
||||
|
||||
- A "here document" is a code structure that is treated as if it were a separate file. They can be used to feed multiple lines into a command. Consider reading more about ["here documents"](https://www.tldp.org/LDP/abs/html/here-docs.html). A simple example is:
|
||||
- A "here document" allows [redirection of multiple lines of input](https://www.tldp.org/LDP/abs/html/here-docs.html) as if from a file:
|
||||
```
|
||||
cat << EOF
|
||||
These lines will
|
||||
print to stdout
|
||||
cat <<EOF
|
||||
input
|
||||
on multiple lines
|
||||
EOF
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue