commands executing in piping in UNIX

Posted by Happy Mittal on Stack Overflow See other posts from Stack Overflow or by Happy Mittal
Published on 2010-04-16T11:16:21Z Indexed on 2010/04/16 11:23 UTC
Read the original article Hit count: 166

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.

© Stack Overflow or respective owner

Related posts about piping

Related posts about unix