the concept of the project is to mimic the behavior of the pipe in the shell, the project consist that this output “ ./pipex file1 cmd1 cmd2 file2 ” behave as “< file1 cmd1 | cmd2 > file2 ”.

So how do we achieve this : first we must understand whats happening in this command " < file1 cmd1 | cmd2 > file2 " : briefly, we read from the file1 run the first command , then run the second command on the output of the first one and write this final output in the file2 . To achieve this :

pipes.png