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.
- Host: GitHub
- URL: https://github.com/jos-felipe/pipex
- Owner: jos-felipe
- Created: 2023-12-14T21:10:46.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-29T18:37:45.000Z (over 2 years ago)
- Last Synced: 2025-03-09T03:51:15.278Z (over 1 year ago)
- Topics: 42cursus, pipex, pipex42
- Language: C
- Homepage:
- Size: 70.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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