Skip to content

Commit

Permalink
add *.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tolmvad committed Oct 14, 2021
1 parent c2fe2e8 commit cfab729
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
![eng](img/eng.png) [![ru](img/ru.png)](README.ru.md)
# `pipex`

The purpose of this project is the discovery in detail UNIX mechanism - `pipe`.
You can read task: [`pipex.subject.pdf`](subject/pipex.subject.pdf)


### 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 moulinette
![125/100](img/125.png)
33 changes: 33 additions & 0 deletions README.ru.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[![eng](img/eng.png)](README.md) ![ru](img/ru.png)
# `pipex`

Цель данного проекта детальное рассмотрение UNIX механизма `pipe`.
Задание можно прочитать здесь: [`pipex.subject.pdf`](subject/pipex.subject.pdf)

### Описание основной части
Программа `pipex` должна повторять поведение следующей команды оболочки
```bash
$> < file1 cmd1 | cmd2 > file2
```
и выглядеть следующим образом:
```bash
$> ./pipex file1 cmd1 cmd2 file2
```
Необходимо обрабатывать все ошибки, такие как: неправильные команды, отсутствие необходимых прав у файлов и т.д.
### Описание бонусной части
Программа должна обрабатывать несколько пайпов.
```bash
$> < file1 cmd1 | cmd2 | cmd3 | ... | cmdn > file2

$> ./pipex file1 cmd1 cmd2 cmd3 ... cmdn file2
```
Поддерживать `<<` и `>>`, когда вместо `file1` передается`here_doc`.
```bash
$> cmd1 << LIMITER | cmd2 >> file2
$> ./pipex here_doc LIMITER cmd1 cmd2 file2
```
### Оценка от moulinette
![125/100](img/125.png)
Binary file added img/125.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/eng.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/ru.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cfab729

Please sign in to comment.