[Gllug] Treats for Windows refugees

Robert Newson ran at qipod.wanadoo.co.uk
Mon Sep 5 19:31:39 UTC 2005


Bruce Richardson wrote:

...
>>Piping the output of one command into another?
> 
> This was present even in DOS.  It's little used but it's there.

Not quite...under DOS pipelines were via tmp files as only one prog could 
run at once, so:

     cmd1 | cmd2 | cmd3

would actually run as:

      cmd1 > $tmpfile1
      cmd2 < $tmpfile1 > $tmpfile2
      del $tmpfile1
      cmd3 < $tmpfile2
      del $tmpfile2

only if you interrupted any of the commands, the $tmpfiles were left lying 
around.  Plus, it also made it impossible to do some things (eg hexdump 
(with ascii) the whole disk piped through more) as the tmpfile could use up 
all the available space before the cmd had finished running.

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list