Update 'posix_shell.md'

master
Jan Danielzick 2022-09-24 17:18:47 +00:00
parent 6af3d04af1
commit 43913d91e0
1 changed files with 2 additions and 1 deletions

View File

@ -61,8 +61,9 @@ the standard output/error streams.
- `COMMAND > FILE` redirects stdout of COMMAND into FILE.
- `COMMAND 2>FILE` redirects stderr into FILE.
- `COMMAND 2>&1` redirects stderr into stdout.
- `COMMAND < FILE` puts the contents of FILE into stdin.
You can have multiple redirects per command though more than two usually dont make sense.
You can have multiple redirects per command though more than three usually dont make sense.
The most common example of this is redirecting stderr to stdout and
the combined stdout into a file like so: `COMMAND > FILE 2>&1`.