diff --git a/posix_shell.md b/posix_shell.md index 2a81d63..14a77cc 100644 --- a/posix_shell.md +++ b/posix_shell.md @@ -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 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 combined stdout into a file like so: `COMMAND > FILE 2>&1`.