Open main menu

CDOT Wiki β

Changes

Tutorial5: Redirection

2 bytes added, 10:02, 5 September 2020
Redirection (Standard Input, Standard Output, Standard Error)
===Redirection (Standard Input, Standard Output, Standard Error)===
<i>standard '''Standard streams''' are preconnected '''input and output communication channels''' between a computer program and its environment when it begins execution. The three input/output (I/O) connections are called '''standard input''' ('''stdin'''), '''standard output''' ('''stdout''') and '''standard error''' ('''stderr'''). Originally I/O happened via a physically connected system console (input via keyboard, output via monitor), but standard streams '''abstract''' this. When a command is executed via an interactive shell, the streams are typically connected to the text terminal on which the shell is running, but can be changed with '''redirection''' or a '''pipeline'''. ''</i>
Reference: https://en.wikipedia.org/wiki/Standard_streams
<span style="font-family:courier;font-weight:bold">cat <<+<br>Line 1<br>Line 2<br>Line 3<br>+<br><br>
 
===Piping (Using Pipes)===
13,420
edits