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.
Suggest An Answer
No suggestions Available!