Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


Search this Thread
Old 12-05-2005, 05:10 AM   #1
Registered: Dec 2004
Location: Sydney, AU
Distribution: CentOS 5.x, Backtrack
Posts: 72

Rep: Reputation: 16
Passing a text file to the command line as arguments


I have a file headers.txt and it is full of a list of rpm headers



I want to then pass these to red hat up2date on the command line. How would i do this?

I tried up2date < headers.txt

but that did not work. I am a just a bit stupid.

Help please!
Old 12-05-2005, 07:31 AM   #2
Registered: Aug 2004
Location: India
Distribution: Redhat 9.0,FC3,FC5,FC10
Posts: 257

Rep: Reputation: 30
you're pretty much on the right track..

up2date headers.txt should work fine...When you use > or >> it redirects output of a command into a file ..usually...

Old 12-05-2005, 08:09 AM   #3
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
You could try:
`cat headers.txt`


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
alsamixer command line arguments dereko Debian 3 09-29-2008 02:06 PM
passing a list of arguments to a command hdagelic Linux - General 2 05-09-2005 09:30 AM
Awk command-line arguments lowpro2k3 Programming 1 03-28-2005 09:09 PM
chpasswd from a command line (without a text file) mpgram Linux - Security 1 04-18-2004 05:44 PM
Help with command line arguments ? synapse Linux - Newbie 2 02-23-2004 02:25 AM

All times are GMT -5. The time now is 09:28 PM.

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