SrVariable / pipex

My fourth project of 42 Málaga Cursus. It recreates the functionality of a Unix pipeline.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pipex

Description

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

Bonus

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

Allowed Functions

Progress

If you want to check my progress as a student in 42 Málaga check out my main repository!

About

My fourth project of 42 Málaga Cursus. It recreates the functionality of a Unix pipeline.


Languages

Language:Shell 48.4%Language:C 41.4%Language:Makefile 10.1%