Difference between revisions of "Stdout, stderr and stdin"

From Linuxintro
imported>ThorstenStaerk
(wow! Now I discovered something new)
(No difference)

Revision as of 18:49, 1 April 2009

Piping is a famous concept in Unix that describes the handling of input and output of running processes. Think of a process that asks for your name. You enter your name by using the keyboard. But instead of reading from the keyboard, the process could also read from the standard input stream. And by default, the standard input stream could be fed by the keyboard.

echo hallo | (read a; echo $a)