Created
November 12, 2021 06:09
-
-
Save karthicraghupathi/8f4505adfd3923a4f9dace4b50e73569 to your computer and use it in GitHub Desktop.
Write Output To File While Tailing It
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use the tee command to write to a file while also viewing it | |
# the following will redirect both stdout and stderr to the file | |
command 2&>1 | tee output.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment