Changes

Jump to: navigation, search

Tutorial5: Redirection

258 bytes added, 17:02, 23 January 2020
Redirection (Standard Input, Standard Output, Standard Error)
<span style="font-family:courier;font-weight:bold">tr 'a-z' 'A-Z' < words.txt<br>cat < abc.txt<br>sort < xyz.txt</span>
<table align-"right"><tr><td>[[Image:stdinstdout-symbol-1.png|thumb|right|250px|The '''standard input''' ('''stdin''') symbol that describes where a Unixwith one greater than sign overwrites existing file content with command output]]</Linux command receives td><td>[[Image:stdout-symbol-2.png|thumb|right|250px|The '''standard input'''('''stdin''') symbol with two greater than signs add command's output to bottom of existing file's contents.]]</td></tr></table>
'''Standard output''' ('''stdout''') describes where a command sends it's output.<br>In the examples below, output from a command is sent to the '''monitor''', unless it is sent to a '''regular file'''.<br>We will discuss another redirection technique called '''pipelines''' later.
13,420
edits

Navigation menu