From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Funw4-0007yB-3B for garchives@archives.gentoo.org; Mon, 26 Jun 2006 10:03:16 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k5Q9wssY008260; Mon, 26 Jun 2006 09:58:54 GMT Received: from cicero1.cybercity.dk (cicero1.cybercity.dk [212.242.40.4]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k5Q9qbH6022645 for ; Mon, 26 Jun 2006 09:52:37 GMT Received: from user2.cybercity.dk (user2.cybercity.dk [212.242.41.35]) by cicero1.cybercity.dk (Postfix) with ESMTP id D152363F2E2 for ; Mon, 26 Jun 2006 11:52:36 +0200 (CEST) Received: from BA.zlin.dk (port78.ds1-abs.adsl.cybercity.dk [212.242.227.17]) by user2.cybercity.dk (Postfix) with ESMTP id 926AA286783 for ; Mon, 26 Jun 2006 11:52:36 +0200 (CEST) From: Bo =?utf-8?q?=C3=98rsted_Andresen?= To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] get unversioned list of installed packages without eix or esearch Date: Mon, 26 Jun 2006 11:53:27 +0200 User-Agent: KMail/1.9.3 References: <200606260844.28702.bo.andresen@zlin.dk> <200606261045.49372.exzombie@exzombie.homeip.net> In-Reply-To: <200606261045.49372.exzombie@exzombie.homeip.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1684779.knKX4KO7HN"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200606261153.33946.bo.andresen@zlin.dk> X-Archives-Salt: 7a767aa3-5e2f-498f-92b6-ec3f23d44652 X-Archives-Hash: afe6785b092fac248455f89020025da6 --nextPart1684779.knKX4KO7HN Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 26 June 2006 10:45, Jure Varlec wrote: > sed -r 's/-[^-]+(-r[0-9]+)*$//' This was exactly what I was looking for. Since the following command did no= t=20 produce any relevant output I can confirm that this works for everything=20 currently in portage. # cd /usr/portage && \ find . -name '*.ebuild' | sed -e 's/\.ebuild$//' | \ awk -F/ '{print $2"/"$4}' | sed -r 's/-[^-]+(-r[0-9]+)*$//' | \ awk -F/ '{system("eix -C "$1" -e "$2" -c | grep -q ^Found\\ 1\\ matches ||= \ echo "$0)}' Thank you to everyone who replied. :) =2D-=20 Bo Andresen --nextPart1684779.knKX4KO7HN Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQBEn66d8/kKEzmwNNoRArM+AKCujjRVh655BFTojw9UBG3mQ35oAgCfYlu8 aiTBJ/gvu17u+unliQj79tw= =tNvu -----END PGP SIGNATURE----- --nextPart1684779.knKX4KO7HN-- -- gentoo-user@gentoo.org mailing list