On Wed, 3 Nov 2010, Russell Senior wrote: >>>>>> "Dan" == Dan Young <[email protected]> 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! > > russ...@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 <> [email protected] <> http://www.madboa.com/ _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
