LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 12-05-2005, 05:10 AM   #1
wimnat
Member
 
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


Hello,

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

e.g.

GConf2-2.2.1-4.i386
GConf2-devel-2.2.1-4.i386
Glide3-20010520-25.i386
Glide3-devel-20010520-25.i386

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
live_dont_exist
Member
 
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...

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

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


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 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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:22 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
Open Source Consulting | Domain Registration