Question: what is difference between pipe and filter?
Answer: A pipe can pass the standard output of one operation to the standard input of another, but a filter can modify the stream. A filter takes the standard input, does something useful with it, and then returns it as a standard output. ... The pipes and filters allow us to create an elegant piece of scripting.