Changes

Jump to: navigation, search

Tutorial5: Redirection

778 bytes added, 07:33, 24 January 2020
Piping (Using Pipes)
Discuss pipes with [[Image:tee-diagram-1.png|thumb|right|450px|The '''tee''' utility can be used to split the flow of information. For example to save in a file as well as display on a screen. The tee option '''-a''' can be used to add content to the bottom of an existing file as opposed to overwriting the file's previous contents.]]The '''tee''' utility can be used to split the flow of information. The tee option '''-a''' can be used to add content to the bottom of an existing file as opposed to overwriting the file's previous contents. The reason for the name "tee" is that the splitting of the flow of information resembles a capital T. ''Examples:''<span style="font-family:courier;font-weight:bold">ls | tee unsorted.txt | sort<br>ls | grep Linux | tee matched.txt | more<br>ls | head -5 | tee filter-a listing.txt</span>
<br><br>
13,420
edits

Navigation menu