Pipes and filters & there used to get needed data ?

984    Asked by NishitaChoudhary in Devops , Asked on Jan 13, 2020
Answered by Ankur vaish

When a program or process takes input from another program and performs the action then the output can be seen using pipe “|” command.

For e.g. you want to extract a pattern or word from a process then the data can be extracted using below command-

#ps aux|grep

ps aux , command will show the process and “| grep” will extract the information from output of ps aux command.

This is how filters are used using pipe in any command.



Your Answer

Interviews

Parent Categories