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
- Host: GitHub
- URL: https://github.com/shuygena/pipex
- Owner: shuygena
- Created: 2022-05-14T13:43:02.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-15T18:46:49.000Z (about 3 years ago)
- Last Synced: 2025-01-17T02:22:45.640Z (5 months ago)
- Topics: 42, 42projects, bash-commands, execve, pipes
- Language: C
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```