Logo 
Search:

Unix / Linux / Ubuntu Articles

Submit Article
Home » Articles » Unix / Linux / Ubuntu » CommandsRSS Feeds

Tee examples in unix

Posted By: Rad Fischer     Category: Unix / Linux / Ubuntu     Views: 9453

Tee examples in unix language.

Tee

It is an External command.
It handles the character stream and then split it in the components.
It saves it in the file and the other as output.
It is also a filter.
It is placed any where in the pipeline.

who | tee user.txt

It display the output and also saves it in the file.
who | cmp user.txt
who | tee /dev/tty | wc -l
If a comand is to be substituted the use the comand in the ` `.

example
 
echo 'There are `ls|wc -l` files in the directory`

  
Share: 

 
 
 

Didn't find what you were looking for? Find more on Tee examples in unix Or get search suggestion and latest updates.

Rad Fischer
Rad Fischer author of Tee examples in unix is from Frankfurt, Germany.
 
View All Articles

 

Other Interesting Articles in Unix / Linux / Ubuntu:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!