Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Apr 2005 23:48:35 -0700
From:      David Armour <dfarmour@myrealbox.com>
To:        freebsd-questions@freebsd.org
Subject:   pkg_info output?
Message-ID:  <200504302348.35647.dfarmour@myrealbox.com>

next in thread | raw e-mail | index | archive | help
hello,

I just used the following log-on tip to produce the list of duplicate 
pkg/ports installations below. 

pkg_info | sort | sed -e 's/-[0-9].*$//' | uniq -c | grep -v '^[[:space:]]*1' 

   3 autoconf
   3 automake
   6 docbook
   2 gcc
   2 glib
   2 gtk
   2 libtool
   2 perl
   2 xorg-fonts

I have also just gawked my way (pun intended) through the sed manpage, but I'm 
no programmer: I don't know what the output means. Warnings, translations, 
hints, appreciated. 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504302348.35647.dfarmour>