tee

You can use tee to copy text from a piped command into a file and to the stdout at the same time instead of echo'ing to a file and then echo'ing to the stdout.

To use tee, just type the command below, and anything you type and hit enter will be added to myfile.txt. If you add the option -a you will just append text to the file.

$ tee myfile.txt

Page Comments (Click to edit)






[Click to add or edit comments])

Please prepend comments below including a date

Design by N.Design Studio, adapted by solidGone.org (version 1.0.0)
Have a nice day.