From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KuwYF-0000gV-Hj for garchives@archives.gentoo.org; Tue, 28 Oct 2008 21:56:36 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 496B8E0041; Tue, 28 Oct 2008 21:56:34 +0000 (UTC) Received: from hs-out-0708.google.com (hs-out-0708.google.com [64.233.178.245]) by pigeon.gentoo.org (Postfix) with ESMTP id 2185AE0041 for ; Tue, 28 Oct 2008 21:56:34 +0000 (UTC) Received: by hs-out-0708.google.com with SMTP id k27so905511hsc.2 for ; Tue, 28 Oct 2008 14:56:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=9PMZnf7WGhWhqMuouGexgo/qOmqT6tVghnVnOwcL66s=; b=MBouU7DmXpy81pguWYOv2+SQ2pQsaFvI0ux4EXsV7wo7BIzvmXGjIWfQV6uXz7VQ1f UbjOjxsBg25irMwuScD3oPDJuTtHGOqQdHyjybrIo7vjLcHbPdxYEt4Pf0MGnzceSzPy yhTB1dTWO6kzUSnNQ+Flgn1fNCVHtLrsAmrwo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=oWOAdbtuLGv0cXoFye39m/6S0yfAZxcUOoXl4WIKR41OWRskpPDqHBLwSkyvdCFRUU O1oWB61jA7xvYO5wix+bF3UfN6IgqWgm4nTaaAAtE/HJONTz+2qyzM47gtjQ2fIerVNr lh0+K9funlberOCmVTFQMnUDsy/RdJEu9D8nk= Received: by 10.65.59.16 with SMTP id m16mr8514648qbk.71.1225230992177; Tue, 28 Oct 2008 14:56:32 -0700 (PDT) Received: from ?10.0.0.6? (dsl-243-211-235.telkomadsl.co.za [41.243.211.235]) by mx.google.com with ESMTPS id p31sm3856215qbp.18.2008.10.28.14.56.29 (version=SSLv3 cipher=RC4-MD5); Tue, 28 Oct 2008 14:56:31 -0700 (PDT) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] package.keywords syntax? Date: Tue, 28 Oct 2008 23:56:25 +0200 User-Agent: KMail/1.9.10 References: <200810282301.38000.alan.mckinnon@gmail.com> <38af3d670810281434h3d4b896x26f594835c60e7a1@mail.gmail.com> In-Reply-To: <38af3d670810281434h3d4b896x26f594835c60e7a1@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810282356.25430.alan.mckinnon@gmail.com> X-Archives-Salt: 6a749bf7-694d-4022-9062-89c6dcef111a X-Archives-Hash: f7e8109475fded05bb1fec4e2c630e78 On Tuesday 28 October 2008 23:34:31 Jorge Peixoto de Morais Neto wrote: > > Run autounmask, it creates a new file in /etc/portage/package.unmask/ > > > > Run a quick awk on it to get it into shape > > > > Move file to /etc/portage/package.mask/ > > > > Problem solved in a neat elegant insightful way. > > awk? I assumed it was an obsolete language included for compatibility. > People should use Python, Perl, or sed's "s" command. Am I wrong? Yes. You are indeed wrong. Python and Perl are humungous interpreters that rival Java for size. Perl is in a class of it's own for syntax bloat. sed is neat but has nowhere near the functionality of awk. For example, I recently needed to scan a massive text file of 89000+ lines and count the number of character on each line and print it out with the line number. A bash script took 20 seconds to run. A C script took less than half a second. An awk script was marginally *quicker*. Granted, most of that time is spent writing to the console, but the text processing must then also be on par with C. awk is not obsolete, it's just been around for a while. It's no more obsoleted by perl, python and sed than ls is obsoleted by the existence of gui file managers -- alan dot mckinnon at gmail dot com