Pipe is used to combine two or more commands, and in this, the output of one command acts as input to another command example: grep command has searched the file ‘sample’, for the string ‘Apple’ cat sample | grep Apple