ilnrzakirov / pipex

💻 🖥 behavior of the pipe function

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pipex

behavior of the pipe function

For detailed information, refer to the subject of this project


Your objective is to code the Pipex program.

It should be executed in this way:

$> ./pipex file1 cmd1 cmd2 file2

Just in case: file1 and file2 are file names, cmd1 and cmd2 are shell commands with their parameters.

The execution of the pipex program should do the same as the next shell command:

$> < file1 cmd1 | cmd2 > file2

III.1 Examples

$> ./pipex infile "ls -l" "wc -l" outfile

should be the same as “< infile ls -l | wc -l > outfile”

$> ./pipex infile "grep a1" "wc -w" outfile

should be the same as “< infile grep a1 | wc -w > outfile”


• Handle multiple pipes

Support « and » when the first parameter is "here_doc"

About

💻 🖥 behavior of the pipe function


Languages

Language:C 91.6%Language:Makefile 8.4%