Pipex is a function that replicates the behaviour of a pipe in a Unix system.
This should behave the same way:
./pipex infile cat "wc -l" outfile
< infile cat | wc -l > outfile
It supports multiple pipes and the use of << and >> when the first parameter is here_doc
This should behave the same way:
./pipex infile cat "wc -l" "grep hello" outfile
< infile cat | wc -l | grep hello > outfile
This should also behave the same way:
./pipex heredoc a cat "grep hello" "wc -l" outfile
cat << a | grep hello | wc -l > outfile
- open()
- close()
- write()
- read()
- malloc()
- free()
- perror()
- access()
- dup2()
- execve()
- exit()
- fork()
- pipe()
- waitpid()
- Any function I coded from scratch.
If you want to check my progress as a student in 42 Málaga check out my main repository!