Write data to files and pipe it into other programs the same time (#tilPost)

Zeke Sikelianos recently shared a tweet that describes the tee command which I’ve never heard of. It can be used to write data to files and continue piping the same data to something else.
This is nothing world changing but in certa…


This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis

Zeke Sikelianos recently shared a tweet that describes the tee command which I've never heard of. It can be used to write data to files and continue piping the same data to something else.

This is nothing world changing but in certain situations this can come in quite handy. ?

ls -l | tee file.txt | less 
            ||
            \/
         file.txt

Reply to Stefan


This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis


Print Share Comment Cite Upload Translate Updates
APA

Stefan Judis | Sciencx (2017-08-28T22:00:00+00:00) Write data to files and pipe it into other programs the same time (#tilPost). Retrieved from https://www.scien.cx/2017/08/28/write-data-to-files-and-pipe-it-into-other-programs-the-same-time-tilpost/

MLA
" » Write data to files and pipe it into other programs the same time (#tilPost)." Stefan Judis | Sciencx - Monday August 28, 2017, https://www.scien.cx/2017/08/28/write-data-to-files-and-pipe-it-into-other-programs-the-same-time-tilpost/
HARVARD
Stefan Judis | Sciencx Monday August 28, 2017 » Write data to files and pipe it into other programs the same time (#tilPost)., viewed ,<https://www.scien.cx/2017/08/28/write-data-to-files-and-pipe-it-into-other-programs-the-same-time-tilpost/>
VANCOUVER
Stefan Judis | Sciencx - » Write data to files and pipe it into other programs the same time (#tilPost). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2017/08/28/write-data-to-files-and-pipe-it-into-other-programs-the-same-time-tilpost/
CHICAGO
" » Write data to files and pipe it into other programs the same time (#tilPost)." Stefan Judis | Sciencx - Accessed . https://www.scien.cx/2017/08/28/write-data-to-files-and-pipe-it-into-other-programs-the-same-time-tilpost/
IEEE
" » Write data to files and pipe it into other programs the same time (#tilPost)." Stefan Judis | Sciencx [Online]. Available: https://www.scien.cx/2017/08/28/write-data-to-files-and-pipe-it-into-other-programs-the-same-time-tilpost/. [Accessed: ]
rf:citation
» Write data to files and pipe it into other programs the same time (#tilPost) | Stefan Judis | Sciencx | https://www.scien.cx/2017/08/28/write-data-to-files-and-pipe-it-into-other-programs-the-same-time-tilpost/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.