labwerx
02-03-2006, 07:29 PM
I really need help with this stupid script. I'm horrible at shell scripting, downright horrible I tell you!
here's what I need to do:
- take the output of a command, or string of commands, for example:
rpm -q tcptrace
- and stick it's output into a variable. I can work my logic magic from there. Technically, if I were to echo $variable it would show
tcptrace-6.6.7-1.2.el4.rf
This should probably be something so simple that a braindead gerbil could probably do it, but I can't figure it out.
here's what I need to do:
- take the output of a command, or string of commands, for example:
rpm -q tcptrace
- and stick it's output into a variable. I can work my logic magic from there. Technically, if I were to echo $variable it would show
tcptrace-6.6.7-1.2.el4.rf
This should probably be something so simple that a braindead gerbil could probably do it, but I can't figure it out.