I need some help with SED and/or GREP...
Basically, I have a text file with a short list of packages (rpms) that I want to install via 'yum', with each package-name separated by a newline:
I want to execute something like:
yum install `command X textfile`
where command is sed and/or grep, and X are the options required to replace each carriage return for a space, so that it effectively results in:
yum install package1 package2 package3 package4
Could somebody please reply with the correct command(s) to achieve the above.
Thanking you in advance.
Last edited by TheEngineer; 02-02-2007 at 07:35 PM.