1 |
Great! the usage of -C escaped me, and I was wondering why I was |
2 |
getting bad output... |
3 |
Thanks, |
4 |
Amit |
5 |
|
6 |
Ned Ludd wrote: |
7 |
> On Tue, 2008-11-25 at 18:05 +0200, Amit Dor-Shifer wrote: |
8 |
> |
9 |
>> Given the following: |
10 |
>> # qlist -Iv sys-apps/portage |
11 |
>> sys-apps/portage-2.1.4.5 |
12 |
>> |
13 |
>> How do I safely extract the "2.1.4.5"? |
14 |
>> |
15 |
>> (I don't necessarily need to use qlist. Just want to get the version of |
16 |
>> an installed package within a bash script) |
17 |
>> |
18 |
>> |
19 |
> |
20 |
> |
21 |
> qatom $(qlist -ICv sys-apps/portage) | awk '{print $3}' |
22 |
> |
23 |
> |
24 |
> |
25 |
> |