It is used for sending data from one program to another and the operator we use is ( | ). What this operator does is feed the output from the program on the left as input to the program on the right.
The general syntax for pipes is:
command_1 | command_2 [| command_3 . . . ]
The general syntax for pipes is:
command_1 | command_2 [| command_3 . . . ]
This chain can continue for any number of commands or programs.