mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 10:43:32 +08:00
Clarify how to redirect stderr into stdout in tutorial
This commit is contained in:
parent
eb7172458b
commit
19a320caa8
|
@ -148,6 +148,10 @@ stdin and stdout can be redirected via the familiar `<` and `<`. stderr is redir
|
|||
> grep fish < /etc/shells > ~/output.txt 2> ~/errors.txt
|
||||
|
||||
|
||||
To redirect stdout and stderr into one file, you need to first redirect stdout, and then stderr into stdout::
|
||||
|
||||
> make > make_output.txt 2>&1
|
||||
|
||||
|
||||
Autosuggestions
|
||||
---------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user