mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-23 07:55:32 +02:00
less-than: add example (#16464)
* Update less-than.md * Update less-than.md --------- Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
This commit is contained in:
parent
0b7ec5f761
commit
5eda7b0d19
1 changed files with 5 additions and 1 deletions
|
@ -9,7 +9,7 @@
|
|||
|
||||
- Create a here document and pass that into `stdin` (requires a multiline command):
|
||||
|
||||
`{{command}} << {{EOF}} <Enter> {{multiline_data}} <Enter> {{EOF}}`
|
||||
`{{command}} << {{EOF}} <Enter> {{multiline_text}} <Enter> {{EOF}}`
|
||||
|
||||
- Create a here string and pass that into `stdin` (achieves the same effect as `echo string |`):
|
||||
|
||||
|
@ -26,3 +26,7 @@
|
|||
- Disregard leading tabs (good for scripts with indentation but does not work for spaces):
|
||||
|
||||
`cat <<- {{EOF}} > {{path/to/file.txt}} <Enter> {{multiline_data}} <Enter> {{EOF}}`
|
||||
|
||||
- Pass command output to a program as a file descriptor:
|
||||
|
||||
`diff <({{command1}}) <({{command2}})`
|
||||
|
|
Loading…
Add table
Reference in a new issue