1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 12:35:24 +02:00

greater-than: add example (#16090)

This commit is contained in:
Managor 2025-04-02 06:23:45 +03:00 committed by GitHub
parent 427768ebf9
commit 663ce5662c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,6 @@
# Greater than
> Redirect output to a file.
> Redirect output.
> More information: <https://gnu.org/software/bash/manual/bash.html#Redirecting-Output>.
- Redirect `stdout` to a file:
@ -22,3 +22,7 @@
- Clear the file contents or create a new empty file:
`> {{path/to/file}}`
- Redirect `stderr` to `stdout` for piping them together:
`{{command1}} 2>&1 | {{command2}}`