Skip to content
/ pipex Public

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

Notifications You must be signed in to change notification settings

ribana-b/pipex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks