public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Florian Philipp <lists@f_philipp.fastmail.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Pipe Lines - A really basic question
Date: Thu, 09 Sep 2010 21:09:15 +0200	[thread overview]
Message-ID: <4C8930DB.3020703@f_philipp.fastmail.net> (raw)
In-Reply-To: <AANLkTin_3irWEkN8Goy=D3edp=x3XOYa5wgR4vkomLJe@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 781 bytes --]

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?
> 
[...]
> 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?
> 

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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

  parent reply	other threads:[~2010-09-09 19:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-09 17:24 [gentoo-user] Pipe Lines - A really basic question Matt Neimeyer
2010-09-09 18:03 ` Etaoin Shrdlu
2010-09-09 18:25 ` Andrea Conti
2010-09-09 19:19   ` Florian Philipp
2010-09-09 20:28     ` [gentoo-user] " Grant Edwards
2010-09-10 16:34       ` Florian Philipp
2010-09-10 18:33         ` Grant Edwards
2010-09-09 19:09 ` Florian Philipp [this message]
2010-09-09 20:46 ` [gentoo-user] " Daniel Troeder
2010-09-10 15:10   ` Paul Hartman
2010-09-10 15:22   ` Matt Neimeyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C8930DB.3020703@f_philipp.fastmail.net \
    --to=lists@f_philipp.fastmail.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox