-
Story
-
Resolution: Done
-
Minor
-
RH124 - RHEL 7 0
-
None
-
ROL
URL:
Reporter RHNID:
Section: -
Language: |
Workaround:
Description: https://rol.redhat.com/rol/roc/course/EditTextFiles.html
In the table for "Output Redirection Operators", I would like to see &>>file added in the column with >>file 2>&1 or I would like to see it added as a row about >>file 2>&1. If the description for (3) is changed (as listed below), then this addition probably isn't necessary.
The description for (3) reads, "The order of redirection is important to avoid unexpected command behavior. Redirect stdout before adding stderr to stdout." I might add a couple of sentences so that it reads, "The order of redirection is important to avoid unexpected command behavior. 2>&1 basically says to send stderr to the same place as stdout. For this to work, stdout needs to be redirected first. Although &>> is an alternate way to append both stdout and stderr to a file, 2>&1 is the method needed to send both sdtout and stderr through a pipe."
One example of tee that I sometimes use in class is using tee in combination with grub-md5-crypt:
- grub-md5-crypt | tee /tmp/grub-md5
While this example isn't so useful in RHEL 7, maybe we can think of an example where a command prompts the user for additional input (so simple redirection wouldn't work) and outputs something like an md5 or sha512 sum that users in runlevel 3 wouldn't want to have to write down manually.
- relates to
-
PTL-2343 RH124-379: "Constructing pipelines" subsection never defines the term "pipeline"
- Closed