On Tue, 17 Mar 2009 08:46:57 +0100, Sebastian Günther wrote:

> > qatom $(qlist -ICv) | awk '{print ">"$1"/"$2"-"$3"~"}'

> What i was wondering: Is there a reason why you split the qlist output 
> into atoms, just to put it together the same way qlist has spitted it 
> out?
> 
> qlist -ICv | awk '{print ">~"$1}'
> should do the job or am I mistaken?

Yes :)

The awk line only takes the first three items from the qlist
output, category, name and version. You don't want revision numbers in
the list if you are using ~.

~foo/bar-1.2.3-r4 is meaningless. It may work, but if it does
this is undocumented, and probably unintended, behaviour and may change
at any time. 


-- 
Neil Bothwick

The human mind ordinarily operates at only ten per cent of its
capacity ... the rest is overhead for the operating system.

Attachment: signature.asc
Description: PGP signature

Reply via email to