This project aims to make us understand a bit deeper two concepts that we already know: the redirections and the pipes.
Just [email protected]:sdummett/pipex.git
and cd pipex
then
make
or for the bonus part (multiple pipes and heredoc handling)
make bonus
It should be executed this way
./pipex file1 cmd1 cmd2 file2
This is similar to the next shell command
< file1 cmd1 | cmd2 > file2
For multiple pipes handling
./pipex file1 cmd1 cmd2 cmd3 ... cmdn file2
This is the equivalent of the next shell command
< file1 cmd1 | cmd2 | cmd3 ... | cmdn > file2
For the heredoc handling
./pipex here_doc LIMITER cmd cmd1 file
This is similar to the next shell command
cmd << LIMITER | cmd1 >> file
๐ค Stone
- Github: @sdummett