Skip to content

Commit 5eda7b0

Browse files
less-than: add example (#16464)
* Update less-than.md * Update less-than.md --------- Co-authored-by: Machiavelli <[email protected]>
1 parent 0b7ec5f commit 5eda7b0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pages/common/less-than.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
- Create a here document and pass that into `stdin` (requires a multiline command):
1111

12-
`{{command}} << {{EOF}} <Enter> {{multiline_data}} <Enter> {{EOF}}`
12+
`{{command}} << {{EOF}} <Enter> {{multiline_text}} <Enter> {{EOF}}`
1313

1414
- Create a here string and pass that into `stdin` (achieves the same effect as `echo string |`):
1515

@@ -26,3 +26,7 @@
2626
- Disregard leading tabs (good for scripts with indentation but does not work for spaces):
2727

2828
`cat <<- {{EOF}} > {{path/to/file.txt}} <Enter> {{multiline_data}} <Enter> {{EOF}}`
29+
30+
- Pass command output to a program as a file descriptor:
31+
32+
`diff <({{command1}}) <({{command2}})`

0 commit comments

Comments
 (0)