Great! the usage of -C escaped me, and I was wondering why I was getting bad output...
Thanks,
Amit

Ned Ludd wrote:
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}'




Reply via email to