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

https://github.com/shuygena/pipex

:fork_and_knife: :twisted_rightwards_arrows: Pipes for execute bash commands
https://github.com/shuygena/pipex

42 42projects bash-commands execve pipes

Last synced: 3 months ago
JSON representation

:fork_and_knife: :twisted_rightwards_arrows: Pipes for execute bash commands

Awesome Lists containing this project

README

        

# Requirements:
gcc compiler
make utility

# Download & Compile
Clone repository:
```
git clone https://github.com/shuygena/pipex.git
```
Go to directory:
```
cd pipex
```
For compile program run:
```
make bonus
```

# How to use
For using redirection with < and > run:
```
./pipex file1 command1 command2 ... comandN file2
```
Example:
```
./pipex main.c "grep if" cat outputfile.txt
```
For using redirection with << adn >> run:
```
./pipex here_doc command1 KEY command2 ... commandN file2
```
Example:
```
./pipex here_doc "ls -la" lol "grep .c" "cat -e" outputfile.txt
```