mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 16:13:31 +02:00
greater-than: add example (#16090)
This commit is contained in:
parent
427768ebf9
commit
663ce5662c
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
# Greater than
|
# Greater than
|
||||||
|
|
||||||
> Redirect output to a file.
|
> Redirect output.
|
||||||
> More information: <https://gnu.org/software/bash/manual/bash.html#Redirecting-Output>.
|
> More information: <https://gnu.org/software/bash/manual/bash.html#Redirecting-Output>.
|
||||||
|
|
||||||
- Redirect `stdout` to a file:
|
- Redirect `stdout` to a file:
|
||||||
|
@ -22,3 +22,7 @@
|
||||||
- Clear the file contents or create a new empty file:
|
- Clear the file contents or create a new empty file:
|
||||||
|
|
||||||
`> {{path/to/file}}`
|
`> {{path/to/file}}`
|
||||||
|
|
||||||
|
- Redirect `stderr` to `stdout` for piping them together:
|
||||||
|
|
||||||
|
`{{command1}} 2>&1 | {{command2}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue