https://github.com/deruina/pipex
The pipex project is a UNIX pipe exploration project in C. It replicates and extends the functionality of UNIX pipes, supporting multiple commands, input redirection, and output appending.
https://github.com/deruina/pipex
42 42projects pipex pipex42
Last synced: 8 months ago
JSON representation
The pipex project is a UNIX pipe exploration project in C. It replicates and extends the functionality of UNIX pipes, supporting multiple commands, input redirection, and output appending.
- Host: GitHub
- URL: https://github.com/deruina/pipex
- Owner: DeRuina
- Created: 2023-01-11T12:57:04.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-02T09:02:01.000Z (over 3 years ago)
- Last Synced: 2025-01-18T07:47:14.472Z (over 1 year ago)
- Topics: 42, 42projects, pipex, pipex42
- Language: C
- Homepage:
- Size: 92.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pipex
The purpose of this project is the discovery in detail UNIX mechanism - `pipe`.
### Discription of mandatory part
The program `pipex` should repeat the behaviour of the next shell command
```bash
$> < file1 cmd1 | cmd2 > file2
```
and looks like this:
```bash
$> ./pipex file1 cmd1 cmd2 file2
```
All errors like: wrong commands, permission to files and etc, need be handle.
### Discription of bonus part
Program need handle multiple pipes
```bash
$> < file1 cmd1 | cmd2 | cmd3 | ... | cmdn > file2
$> ./pipex file1 cmd1 cmd2 cmd3 ... cmdn file2
```
Support `<<` and `>>`, when instead of `file1` is`here_doc`.
```bash
$> cmd1 << LIMITER | cmd2 >> file2
$> ./pipex here_doc LIMITER cmd1 cmd2 file2
```
### Evaluated by 42

## Author
- [@DeRuina](https://github.com/DeRuina)