This project help 42 students to have a deeper knowledge about processes and redirection.
With Make installed just run make
in the terminal to compile the program:
make
Then execute the program using the following rules:
./pipex infile cmd1 cmd2 outfile
, the program should behave like the shell command < infile cmd1 | cmd2 > outfile
.
./pipex infile "ls -l" "wc -l" outfile # emulation
< infile ls -l | wc -l > outfile # bash
make
./pipex infile "grep a1" "wc -w" outfile # emulation
< infile grep a1 | wc -w > outfile # sh
I'm uploading too the files to debug inside vscode, because I don't want to lose the configuration.