- This project aims to recreate the Unix pipe ( | ) command.
For you to test this project, you should use the following way:
./pipex file1 "cmd1" "cmd2" file2
Just in case: file1 and file2 are file names, cmd1 and cmd2 are shell commands with their parameters.
The execution of the pipex program should do the same as the next shell command:
< file1 cmd1 | cmd2 > file2
Example 1:
./pipex infile "ls -l" "wc -l" outfile
Should be the same as:
< infile ls -l | wc -l > outfile
Example 2:
./pipex infile "grep a1" "wc -w" outfile
Should be the same as:
< infile grep a1 | wc -w > outfile