From owner-freebsd-questions@FreeBSD.ORG Wed Feb 2 14:33:13 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B58EE16A4CF for ; Wed, 2 Feb 2005 14:33:13 +0000 (GMT) Received: from orchid.homeunix.org (awe55.neoplus.adsl.tpnet.pl [83.27.64.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0EB843D67 for ; Wed, 2 Feb 2005 14:33:12 +0000 (GMT) (envelope-from freebsd@orchid.homeunix.org) Received: from [192.168.1.66] (blackacidevil.orchid.homeunix.org [192.168.1.66]) (authenticated bits=0) by orchid.homeunix.org (8.13.1/8.13.1) with ESMTP id j12EX9SQ074219 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 Feb 2005 15:33:10 +0100 (CET) (envelope-from freebsd@orchid.homeunix.org) Message-ID: <4200E4A7.6060902@orchid.homeunix.org> Date: Wed, 02 Feb 2005 15:33:11 +0100 From: Karol Kwiatkowski User-Agent: Mozilla Thunderbird 1.0 (X11/20050114) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Chris Hodgins References: <20050202131936.59448.qmail@web51702.mail.yahoo.com> <4200D927.5010000@orchid.homeunix.org> <4200E0B9.6000705@cis.strath.ac.uk> In-Reply-To: <4200E0B9.6000705@cis.strath.ac.uk> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.81, clamav-milter version 0.81b on orchid.homeunix.org X-Virus-Status: Clean cc: freebsd-questions@freebsd.org cc: saravanan ganapathy Subject: Re: using portversion (Was: keeping freebsd uptodate - doubt) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd@orchid.homeunix.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Feb 2005 14:33:13 -0000 Chris Hodgins wrote: >>> 4) portversion -v >> >> 'portversion -v | grep -v "=" ' is what I use. >> > > You shouldn't require the grep...you can do this instead: > > # portversion -vl"<" Cheers for that, I didn't thought about that. But, that's not exactly what I wanted: '-l' switch includes only "<" while 'grep -v "="' excludes "=". The difference is I wanted ">" included, too (just in case). Quick scan of portversion manpage gave me '-L' option: > -L CHARS > --inv-limit CHARS Exclude the packages with the specified status > flags. so it would be like: # portversion -vL"<" Thanks for info! Karol -- Karol Kwiatkowski