The first bit can be simplified to grep -H '5\.12' /var/db/pkg/p5-*/+CONTENTS
sort | uniq is the same as sort -u
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Last edited by Carpetsmoker; 21st October 2013 at 01:03 PM.
|