commands executing in piping in UNIX

Posted by Happy Mittal on Super User See other posts from Super User or by Happy Mittal
Published on 2010-04-16T11:16:21Z Indexed on 2010/04/18 6:43 UTC
Read the original article Hit count: 370

Filed under:
|

when I write a command

$ echo date  

then it prints "date" as it is i.e it doesn't run date program.
But when I write

$ echo date | wc  

then correct answer is produced as if date was run. How piping is making difference here ?
Please explain.

© Super User or respective owner

Related posts about piping

Related posts about unix