The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
who truncates the output? redirection? tty? Bug? fredy UNIX for Advanced & Expert Users 7 12-09-2006 11:21 PM
Redirection of output (for logging) _Spare_Ribs_ Shell Programming and Scripting 3 12-04-2006 11:17 AM
permanent redirection of standard input gfhgfnhhn Shell Programming and Scripting 6 11-01-2006 01:52 AM
redirection of ladebug output yakari UNIX for Advanced & Expert Users 2 10-05-2006 11:23 PM
Bash multiple output redirection yoi2hot4ya Shell Programming and Scripting 2 05-31-2005 09:52 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-27-2005
Registered User
 

Join Date: Feb 2005
Location: Columbus OH
Posts: 133
Standard output and redirection

Hello,

Is is possible to redirect stdout to a file as well as to the console/screen or display in ksh.

any thoughts suggestions/input is appreciated. Thanks.
Reply With Quote
Forum Sponsor
  #2  
Old 06-27-2005
Registered User
 

Join Date: May 2005
Posts: 46
Smile use tee

Use Tee

ls -lt | wc -l | tee /dev/tty file.txt
Reply With Quote
  #3  
Old 06-27-2005
Registered User
 

Join Date: Feb 2005
Location: Columbus OH
Posts: 133
Thanks. I will use tee command.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:47 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0