LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Passing a text file to the command line as arguments (https://www.linuxquestions.org/questions/linux-general-1/passing-a-text-file-to-the-command-line-as-arguments-389383/)

wimnat 12-05-2005 05:10 AM

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!

live_dont_exist 12-05-2005 07:31 AM

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

stickman 12-05-2005 08:09 AM

You could try:
`cat headers.txt`


All times are GMT -5. The time now is 06:54 PM.