Tee commmand Assignment Help

Assignment Help: >> Filters - Tee commmand

tee

Any output from a command which gets piped into another command is not look at the terminal. Occasionally, the user may need to save the output which is produced in the centre of a pipe. The tee command enables to do this simply.

Syntax

tee file

This command easily copies the data coming in to the standard output, although saving a copy in the specified file.

Let consider the following example

# sort students | tee stud | more

Anita

Anju

Bobby

Hema

Jeevan

Neha

Priya

Rama

Sanjana

(EOF):

This will sort the student file, show it page wise and save it in file stud. Now the sorted file stud could be shown on the terminal by using cat command.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd