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! |
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 |
You could try:
`cat headers.txt` |
All times are GMT -5. The time now is 06:54 PM. |