Pipes and streams
routinepar 1 commandSeparate the streams
Read one file that exists and one that does not. The error goes into errors.txt; the output stays on the terminal.
Goal
0 / 1 commands
Read a file that exists and one that does not, sending only the error into errors.txt and leaving the output on the terminal.
- ·Uses
cat - ·Puts the answer on standard output
$
| Mode | Links | Size | Name |
|---|---|---|---|
| -rw-r--r-- | 1 | 63 | notes.txt |
| -rw-r--r-- | 1 | 97 | roster.md |