kaio-matos / 42_pipex

This project aims to deepen your understanding of the two concepts that you already know: Redirections and Pipes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pipex

Pipex

This project help 42 students to have a deeper knowledge about processes and redirection.

Execution

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.

Examples

./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

Note

I'm uploading too the files to debug inside vscode, because I don't want to lose the configuration.

About

This project aims to deepen your understanding of the two concepts that you already know: Redirections and Pipes.


Languages

Language:C 95.8%Language:Makefile 4.2%