How do I copy the standard output of a command to a file? I.e. direct it to the file in addition to (not instead of) the console?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Get yourself a copy of
teefromGnuWin32(it’s part ofCoreUtils) and use:If you have (and don’t mind using)
powershell, that command will also work within it, obviating the need for third-party tools.