tee

REDIRECTING TO MULTIPLE TARGETS TEE:

With pipe tee commands is used. Tee reads data from input source and and write it to another file.

Syntax of tee command is : tee [OPTION] fileName.

For example-

$ echo “Professor Jayesh” | tee jayesh


In above example, tee command write the ‘Professor Jayesh’ in file ‘jayesh’.


In above example we seen that when we again write in data to the same file jayesh than previous text got overwrite, that means it removes previous text and write new text.

LEAVE A REPLY










Related topics

Please use contact page in this website if you find anything incorrect or you want to share more information about the topic discussed above.