LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 05:27 PM   #1
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Rep: Reputation: 31
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, 05:35 PM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

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

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


Reply



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 02:19 AM
Quick question about tar (backup) with same file extension nguyendh Linux - General 6 04-16-2007 10:26 AM
Quick File permission question james.farrow Linux - General 4 02-15-2007 07:18 AM
How to keep reading a file (quick question) 1veedo Linux - Newbie 2 12-29-2005 03:56 PM
quick File Manager question wrybread Linux - Newbie 1 12-04-2005 02:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:09 AM.

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
Open Source Consulting | Domain Registration