On Tue, 2008-11-25 at 18:05 +0200, Amit Dor-Shifer wrote: > Given the following: > # qlist -Iv sys-apps/portage > sys-apps/portage-2.1.4.5 > > How do I safely extract the "2.1.4.5"? > > (I don't necessarily need to use qlist. Just want to get the version of > an installed package within a bash script) >
qatom $(qlist -ICv sys-apps/portage) | awk '{print $3}' -- Ned Ludd <[EMAIL PROTECTED]> Gentoo Linux