Update 'posix_shell.md'
parent
6af3d04af1
commit
43913d91e0
|
@ -61,8 +61,9 @@ the standard output/error streams.
|
||||||
- `COMMAND > FILE` redirects stdout of COMMAND into FILE.
|
- `COMMAND > FILE` redirects stdout of COMMAND into FILE.
|
||||||
- `COMMAND 2>FILE` redirects stderr into FILE.
|
- `COMMAND 2>FILE` redirects stderr into FILE.
|
||||||
- `COMMAND 2>&1` redirects stderr into stdout.
|
- `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 don’t make sense.
|
You can have multiple redirects per command though more than three usually don’t make sense.
|
||||||
The most common example of this is redirecting stderr to stdout and
|
The most common example of this is redirecting stderr to stdout and
|
||||||
the combined stdout into a file like so: `COMMAND > FILE 2>&1`.
|
the combined stdout into a file like so: `COMMAND > FILE 2>&1`.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue