Zhukov Pavel wrote:
i think:
rpm -qa --qf '%{vendor}\n' | sort | uniq -c
[root@js ~]# rpm -qa --qf '%{vendor}\n' | sort | uniq -c
1 Adobe Systems, Incorporated
592 CentOS
3 Dag Apt Repository, http://dag.wieers.com/apt/
4 http://centos.org
1 Invoca Systems
3 (none)
[root@js ~]#
A smarty for you:-)
On 11/26/07, Dave Burns <tburns@xxxxxxxxxx> wrote:
On Nov 25, 2007 10:27 AM, John Summerfield
<debian@xxxxxxxxxxxxxxxxxxxxxx> wrote:
(which might be the reviewer's), Try this example:
rpm -qa --qf '%vendorn' | sort | uniq -c
1 Adobe Systems, Incorporated
12 (none)
1 RealNetworks, Inc
838 Red Hat, Inc.
1 Sun Microsystems
I did. I got one of these per package:
error: incorrect format: missing { after %
Am I using the wrong shell? Have some alias defined that is screwing
it up? I was pleased to find a description of --qf in the rpm man page
(no examples of course) but no reference to %vendorn. Is it a typo?
I tried to take the advice of the error message...
rpm -qa --qf '%{vendorn}' | sort | uniq -c
error: incorrect format: unknown tag
Various other simpleminded variants fail. Apparently someone familiar
with printf might be able to fix this, but I am clueless. Is there a
way to make it work?
That was the point, the reviewer (correctly) pointed out an error, then
made two of his own: he left out the {} and he forgot that the n should
be \n.
\
--
Cheers
John
-- spambait
1aaaaaaa@xxxxxxxxxxxxxxxx Z1aaaaaaa@xxxxxxxxxxxxxxxx
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375
You cannot reply off-list:-)
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list