Peter Cordes <peter@llama.nslug.ns.ca> 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:scouter@bigpond.net.au Debian Developer | mailto:eddie@debian.org | jabber:sam@jabber.topic.com.au OpenPGP fingerprint: A46B 9BB5 3148 7BEA 1F05 5BD5 8530 03AE DE89 C75C
Attachment:
pgpzMADtxbWkL.pgp
Description: PGP signature