1
0
Fork 0
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:
Managor 2025-05-17 15:24:23 +03:00 committed by GitHub
parent 0b7ec5f761
commit 5eda7b0d19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}})`