Pipex reproduces the behaviour of the shell pipe | command in C.
It launches as ./pipex infile cmd1 cmd2 outfile
and behaves as this line does in the shell < infile cmd1 | cmd2 > outfile
.
gcl https://github.com/trobert42/pipex.git
cd pipex
make
Make sure you create file1 as input and the output will be displayed on the existing file2 (or it will be created)
./pipex file1 command1 command2 file2