Peter Cordes <[EMAIL PROTECTED]> wrote:
> dpkg --get-selections | grep '[^A-Za-z]install$' | cut -f1
> should work.
> 
>  This time for sure :)

How about matching what you really want instead of guessing with grep:
The second field is exactly "install".

And how about doing it all with one command invocation (Don't waste
PIDs!):

dpkg --get-selections | awk '$2 == "install" { print $1 }'

And I don't even know awk. ;)
-- 
Sam "Eddie" Couter  |  mailto:[EMAIL PROTECTED]
Debian Developer    |  mailto:[EMAIL PROTECTED]
                    |  jabber:[EMAIL PROTECTED]
OpenPGP fingerprint:  A46B 9BB5 3148 7BEA 1F05  5BD5 8530 03AE DE89 C75C

Attachment: pgp4Ccr397wFx.pgp
Description: PGP signature

Reply via email to