LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-27-2008, 06:27 PM   #1
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Rep: Reputation: 30
quick question about dumping output to a file


I can dump output to a file with > but what if I want it to go to the console and also to a file? Can I do both at once?
 
Old 08-27-2008, 06:35 PM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
you can use the tee command
cat file | tee output
 
Old 08-27-2008, 06:41 PM   #3
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 30
nice, that's exactly what I needed (and could not easily find in a google search)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl Dumping output into logfile. misconfiguration Programming 6 08-10-2007 03:19 AM
Quick question about tar (backup) with same file extension nguyendh Linux - General 6 04-16-2007 11:26 AM
Quick File permission question james.farrow Linux - General 4 02-15-2007 08:18 AM
How to keep reading a file (quick question) 1veedo Linux - Newbie 2 12-29-2005 04:56 PM
quick File Manager question wrybread Linux - Newbie 1 12-04-2005 03:07 AM


All times are GMT -5. The time now is 02:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration