Robert Huff wrote:
Ah. Not quite but thanks for telling me the location of the pkg
directory (btw, it's var/db/
Brett Davidson writes:
ie. If I had a particular version of the ports tree on a server,
how could I check to see if any of the programs in that tree were
Is there a simple command or sequence of commands to do this?
dir /var/d/pkg | grep <portname>
I've now worked out how to get what I want via :
for i in *
MATCHES=`grep -c $i /usr/ports/INDEX-6`
if [ $MATCHES -gt 0 ]
#echo "Pattern $i Matched $MATCHES times"
echo "Pattern $i not matched"
In my case I was looking for files that weren't at the same revision
level as the ports tree but both options are accounted for.
Brett Davidsonls -la
Phone: 0800 5000 24 | DDI: +64 3 962 9518
// web hosting / email hosting / data backup
// our reputation for reliability precedes us
This transmission is for the intended addressee only and is confidential
information. If you have received this transmission in error, please
delete it and notify the sender.
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"