[PLUG] (SOLVED) Removing OOo with yum ... or?

Paul Heinlein heinlein at madboa.com
Wed Nov 3 22:20:43 UTC 2010


On Wed, 3 Nov 2010, Russell Senior wrote:

>>>>>> "Dan" == Dan Young <danielmyoung at gmail.com> writes:
>
> Russell> Or an equivalent alternative:
> Russell> rpm -e $(cat rmlist)
>
> Dan> UUOC! ;-)
>
> Dan> xargs rpm -e < rmlist
>
> D'oh!  But, you are cheating by adding xargs!
>
>  russell at donk:~$ ls -l /usr/bin/xargs /bin/cat
>  -rwxr-xr-x 1 root root 26860 2008-04-04 07:22 /bin/cat
>  -rwxr-xr-x 1 root root 34516 2008-04-03 10:41 /usr/bin/xargs
>
> See, /bin/cat is smaller! ;-)

In its "Command Substitution" subsection, the bash(1) man page even 
makes a special point of calling out this circumstance: "The command 
substitution $(cat file) can be replaced by the equivalent but faster 
$(< file)."

-- 
Paul Heinlein <> heinlein at madboa.com <> http://www.madboa.com/



More information about the PLUG mailing list