Sometime today, Kinjal Sonpal wrote:

> While going thru' the chapter of Pipes & Redirection from the
> *The Unix Programming Environment* (the famous yellow book by
> Kerninghan, et al) I read that when we use redirection, the
> system uses some temporary files to accomplish the task.
> Whereas by using pipes, the overhead of temp. files can be
> avoided.

What he means is that when you do this -
  prompt# program1 > p1.out; program2 < p1.out

you have to create the temporary file p1.out .  You can avoid
this by using a pipe -
  prompt# program1 | program2

program1 write to the pipe and program2 reads from the pipe.

HTH.

Manish

-- 
The clothes have no emperor.
    -- C.A.R. Hoare, commenting on ADA.


_______________________________________________
http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

Reply via email to