Open main menu

CDOT Wiki β

Changes

Tutorial5: Redirection

148 bytes added, 07:21, 24 January 2020
Piping (Using Pipes)
Commands to the right of the pipe symbol are referred to as '''filters'''. They are referred to as ''filters'' since those commands are used to modify the stdin that was sent from the previous command. Many commands can be "piped" together, but these commands (filters) must be chained in a specific order, depending on what you wish to accomplish
Example piping use''Examples:''<span style="font-family:courier;font-weight:bold">ls -al | more<br>ls | sort -r<br>ls | sort | more<br>ls | grep Linux | head -5<br>head -7 filename | tail -2</span>
Discuss pipes with the tee filter
13,420
edits