0% found this document useful (0 votes)
13 views3 pages

Tee Command

The tee command in shell scripting allows users to display output while simultaneously saving it to a file, making it useful for creating logs. The basic syntax is 'Command | tee outputFile.txt' for saving output, and 'Command | tee -a outputFile.txt' for appending to an existing file. This command is essential for automating common tasks in Bash shell scripting.

Uploaded by

varun186
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views3 pages

Tee Command

The tee command in shell scripting allows users to display output while simultaneously saving it to a file, making it useful for creating logs. The basic syntax is 'Command | tee outputFile.txt' for saving output, and 'Command | tee -a outputFile.txt' for appending to an existing file. This command is essential for automating common tasks in Bash shell scripting.

Uploaded by

varun186
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Simple tee command usage for shell scripting

NarendraP

Learn How to Automate Common Tasks with Bash Shell Scripting


tee command
 tee command is used to display the output and also to store that output into a file. (It does both the
tasks simultaneously).
 It is useful to create logs for shell scripting.
 Syntax:
 Command | tee outputFile.txt
 Command | tee –a outputFile.txt

Learn How to Automate Common Tasks with Bash Shell Scripting


Thank you

You might also like