LinuxQuestions.org
Review your favorite Linux distribution.
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 09-30-2003, 03:29 AM   #1
rvijay
Senior Member
 
Registered: Aug 2003
Location: Quebec, Canada
Distribution: Debian HD install of Knoppix 5.0.1
Posts: 921
Blog Entries: 15

Rep: Reputation: 32
Help: Command Output to File.


If I use a command like lspci on my terminal, how can I copy or append directly the output of the command to a file ? Can this be done ? Thanks.

Vijay
 
Old 09-30-2003, 03:51 AM   #2
MadNewbie
Member
 
Registered: Jun 2003
Posts: 31

Rep: Reputation: 15
If I read your question correctly i belive you are looking for ">"

man bash for more(under the redirection paragraph)
 
Old 09-30-2003, 08:57 AM   #3
rvijay
Senior Member
 
Registered: Aug 2003
Location: Quebec, Canada
Distribution: Debian HD install of Knoppix 5.0.1
Posts: 921
Blog Entries: 15

Original Poster
Rep: Reputation: 32
Quote:
Originally posted by MadNewbie
If I read your question correctly i belive you are looking for ">"

man bash for more(under the redirection paragraph)
There is a lot of info. under man bash. Here is what I would like to do:

1) I want to run the command lspci
2) I want the output from the command to be saved as a file called output1

Please assist me with the simple commands that will enable me to do this.

Thanks.

Vijay
 
Old 09-30-2003, 09:02 AM   #4
captainstorm
Member
 
Registered: Jun 2003
Location: Oricola, Italy
Distribution: RH 9, so far
Posts: 261

Rep: Reputation: 30
">" is redirection.
$lspci > output1
$cat output1
 
  


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
Output the result of a command to a file darkarcon2015 Linux - Newbie 1 09-24-2005 06:29 PM
Command line to get output on a file satimis Programming 4 06-24-2005 06:04 AM
how to use the output of a file for input of a command sneak Linux - General 2 05-12-2004 09:21 AM
How to redirect standard output of piped command to log file andrewstr Linux - General 10 02-04-2004 02:07 PM
Can I put execl command output into a file? CrazyDragon Programming 1 12-17-2003 04:34 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration