What are pipes and filters in Unix?
- Pipes – a pipe connects small commands together to execute a complete complex task. Pipe symbol is ‘|.’ The flow of data through the pipe is from left to right. Example – $ cat names.txt | grep “Sam” | tee sam.txt | wc -1
- Filter – Filters are used to modify the output of a command. Examples of filters are grep, sort, more, less, cat, cut and so on.
BY Best Interview Question ON 11 Apr 2019