From owner-freebsd-chat Tue Jun 13 17:46: 7 2000 Delivered-To: freebsd-chat@freebsd.org Received: from mta01-svc.server.ntlworld.com (mta01-svc.ntlworld.com [62.253.162.41]) by hub.freebsd.org (Postfix) with ESMTP id A13D837BF31 for ; Tue, 13 Jun 2000 17:46:04 -0700 (PDT) (envelope-from mark@ukug.uk.freebsd.org) Received: from parish.my.domain ([62.253.88.172]) by mta01-svc.server.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000614004603.IVFP381.mta01-svc.server.ntlworld.com@parish.my.domain> for ; Wed, 14 Jun 2000 01:46:03 +0100 Received: (from mark@localhost) by parish.my.domain (8.9.3/8.9.3) id BAA02824 for chat@freebsd.org; Wed, 14 Jun 2000 01:46:03 +0100 (BST) (envelope-from mark) Date: Wed, 14 Jun 2000 01:46:03 +0100 From: Mark Ovens To: chat@freebsd.org Subject: New ports searching utility Message-ID: <20000614014603.F232@parish> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Organization: Total lack of Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org As a first real programming exercise in perl(1) I wrote a program, called ``sp'', to allow a more selective search of the ports collection. With the number of ports now at ~3500 the number of hits using ``make search'' is often excessive due to its' simplistic "all fields" searching method. It can use all the perl(1)'s regular expressions for pattern matching and you can specify what to search for in each field of the ports records, so you can do things like: sp -x '(textproc|print|www)' -m '(nik|jim)' -r tidy to find all ports in the textproc, print, and www categories that are maintained by Nik Clayton or Jim Mock and have a run dependency on tidy(1). It also tells you how many matching ports it found. If you want to give it a try I put a tarball containing the program and the manpage at: ftp://ukug.uk.freebsd.org/pub/mark/sp/sp.tgz Extract it in a temp directory and copy the program, sp, to /usr/local/bin and the manpage to /usr/share/man/man1. -- Want a lean, mean, computing machine? Get rid of that FAT - install FreeBSD ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message