From 43913d91e047fa6a29e58de617c98af920f90c30 Mon Sep 17 00:00:00 2001 From: Jan Danielzick Date: Sat, 24 Sep 2022 17:18:47 +0000 Subject: [PATCH] Update 'posix_shell.md' --- posix_shell.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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`.