An open API service indexing awesome lists of open source software.

https://github.com/jos-felipe/pipex

This project aims to deepen your understanding of the two concepts that you already know: Redirections and Pipes. It is an introductory project for the bigger UNIX projects that will appear later on in the cursus.
https://github.com/jos-felipe/pipex

42cursus pipex pipex42

Last synced: about 2 months ago
JSON representation

This project aims to deepen your understanding of the two concepts that you already know: Redirections and Pipes. It is an introductory project for the bigger UNIX projects that will appear later on in the cursus.

Awesome Lists containing this project

README

          

Description



This project is about hanling pipes.

Your program will be executed as follows:
```bash
./pipex file1 cmd1 cmd2 file2
```

It must take 4 arguments:
>
> - file1 and file2 are file names.
> - cmd1 and cmd2 are shell commands with their parameters.

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

```bash
$> < file1 cmd1 | cmd2 > file2
```

## Examples
```bash
$ ./pipex infile "ls -l" "wc -l" outfile
``````
Should behave like:
```bash
$ < infile ls -l | wc -l > outfile
```
```bash
$ ./pipex infile "grep a1" "wc -w" outfile
``````
Should behave like:
```bash
$ < infile grep a1 | wc -w > outfile
````
## Implementation Reference
https://github.com/ArthurSobreira/42_pipex