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 1Otks6-00040n-H2 for garchives@archives.gentoo.org; Thu, 09 Sep 2010 17:25:15 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C33BCE0966; Thu, 9 Sep 2010 17:24:38 +0000 (UTC) Received: from na3sys009aog104.obsmtp.com (na3sys009aog104.obsmtp.com [74.125.149.73]) by pigeon.gentoo.org (Postfix) with SMTP id 0C7E3E0966 for ; Thu, 9 Sep 2010 17:24:37 +0000 (UTC) Received: from source ([209.85.161.42]) by na3sys009aob104.postini.com ([74.125.148.12]) with SMTP ID DSNKTIkYVYFLd+kuIs3bDxGliRQBBlmfoyRk@postini.com; Thu, 09 Sep 2010 10:24:38 PDT Received: by mail-fx0-f42.google.com with SMTP id 14so1562041fxm.1 for ; Thu, 09 Sep 2010 10:24:37 -0700 (PDT) Received: by 10.223.116.76 with SMTP id l12mr1063552faq.71.1284053076203; Thu, 09 Sep 2010 10:24:36 -0700 (PDT) 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 Received: by 10.223.1.3 with HTTP; Thu, 9 Sep 2010 10:24:16 -0700 (PDT) From: Matt Neimeyer Date: Thu, 9 Sep 2010 13:24:16 -0400 Message-ID: Subject: [gentoo-user] Pipe Lines - A really basic question To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: 6d57697b-7497-4e3e-a976-6bc0fae87efa X-Archives-Hash: 80af5737e379ca679402ed60784956b0 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? For example, I have a development Gentoo VM that has a hard drive that is too small... I wanted to move a database off of that onto another machine but when I tried the following I filled my partition and 'evil things' happened... mysqldump blah... gzip blah... In this specific case I added another virtual drive, mounted that and went on with life but I'm curious if I could have gotten away with the pipe line instead. Will doing something like this still use "twice" the space? mysqldump | gzip > file.sql.gz 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? Thanks in advance! Matt P.S. If the answer is "it depends" how do know what it depends on?