From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OtmVN-0003bh-8u for garchives@archives.gentoo.org; Thu, 09 Sep 2010 19:09:53 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0DBF1E09EC; Thu, 9 Sep 2010 19:09:25 +0000 (UTC) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by pigeon.gentoo.org (Postfix) with ESMTP id E6F2DE09EC for ; Thu, 9 Sep 2010 19:09:24 +0000 (UTC) Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.messagingengine.com (Postfix) with ESMTP id CB657309; Thu, 9 Sep 2010 15:09:24 -0400 (EDT) Received: from frontend1.messagingengine.com ([10.202.2.160]) by compute3.internal (MEProxy); Thu, 09 Sep 2010 15:09:24 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=message-id:date:from:reply-to:mime-version:to:subject:references:in-reply-to:content-type; s=smtpout; bh=PXKmpTnjcfs8VKPwdzp9WRoNidE=; b=RpNcsN7c6adSs8eLgOG0LNrSRF7Mxk5rQcPTiJHQ26x+3UTaAodA1uT8Kb4/ULB/QRvj8tex5PaK9lGl8Y/OrwKFwzNxtN1jFlZzveCT47VhQGlGTo0Aywd/26+M2+hdllrPllhiiCnbZzS08qHQs3Oj8x99DELF27mA+AkTcWU= X-Sasl-enc: VGqmdCTEUe24Ze4Wo8oZSn7dNMP1wjW6TQgQGZbdth6C 1284059364 Received: from [192.168.5.18] (lvps83-169-5-6.dedicated.hosteurope.de [83.169.5.6]) by mail.messagingengine.com (Postfix) with ESMTPSA id 9A0C440291A for ; Thu, 9 Sep 2010 15:09:23 -0400 (EDT) Message-ID: <4C8930DB.3020703@f_philipp.fastmail.net> Date: Thu, 09 Sep 2010 21:09:15 +0200 From: Florian Philipp User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100808 Lightning/1.0b2pre Thunderbird/3.1.1 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Pipe Lines - A really basic question References: In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig8F2D27A8048A80311EEF5A97" X-Archives-Salt: aaded2d8-7469-4c19-a3d9-896efd1d15d4 X-Archives-Hash: 59262306c71827abb0492a0e292545bd This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8F2D27A8048A80311EEF5A97 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 09.09.2010 19:24, schrieb Matt Neimeyer: > My generic question is: When I'm using a pipe line series of commands > do I use up more/less space than doing things in sequence? >=20 [...] > OR going back to my generic question if I pipe line like "type | sort > | unique > output" does that only use 1x or 3x the disk space? >=20 > Thanks in advance! >=20 > Matt >=20 > P.S. If the answer is "it depends" how do know what it depends on? >=20 It depends on whether you use MS-DOS or a better OS ;) DOS was the last operating system which I know of which used temporary files for pipes. Every other system uses in-memory FIFOs (first-in-first-out). BTW: your last example "type | sort | uniq" can be shortened to "type | sort -u" Hope this helps, Florian Philipp --------------enig8F2D27A8048A80311EEF5A97 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyJMN8ACgkQqs4uOUlOuU8FsgCeKmLuVGVidzz6VxOOd+nxz1JZ k6cAmgIq5NhHhWywvwABcBy9ErUiA1+T =pYqm -----END PGP SIGNATURE----- --------------enig8F2D27A8048A80311EEF5A97--