Skip to content
/ Pipex Public

This 42 project is about handling pipes like the bash terminal to execute shell's commands !

Notifications You must be signed in to change notification settings

dspilleb/Pipex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📖 Pipex | 19 Brussels

GitHub code size in bytes Number of lines of code Code language count GitHub top language GitHub last commit

💡 About the project

This project will let you discover in detail a UNIX mechanism that you already know by using it in your program.

💻 To use the program

you must first compile it with the makefile by using the command 'make' in the shell

make all

Then the program must be executed as follows:

./pipex file1 cmd1 cmd2 file2

Mandatory

It must take 4 arguments:

  • file1 and file2 are file names.
  • cmd1 and cmd2 are shell commands with their parameters.


It must behave exactly the same as the shell command below:

 < file1 cmd1 | cmd2 > file2

Bonus

  • Handle multiple pipes.
  • Support « and » when the first parameter is "here_doc".

    It must behave exactly the same as the shells command below:

     < file1 cmd1 | cmd2 | cmd3 ... | cmdn > file2
     cmd << LIMITER | cmd1 >> file
  • About

    This 42 project is about handling pipes like the bash terminal to execute shell's commands !

    Topics

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published