diff --git a/pages/common/greater-than.md b/pages/common/greater-than.md index e13327ede1..cf08d5912b 100644 --- a/pages/common/greater-than.md +++ b/pages/common/greater-than.md @@ -1,6 +1,6 @@ # Greater than -> Redirect output to a file. +> Redirect output. > More information: . - 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}}`