GithubHelp home page GithubHelp logo

pipex's Introduction

pipex

This project was made in accordance with the project of School 21 (Ecole 42).

GitHub code size in bytes Number of lines of code Code language count GitHub top language


Preamble

The purpose of this project is to simulate UNIX mechanism - pipe.

You can see the subject here: pipex.

Main requirements, rules and code style: Norm.


Description

Mandatory part

  • Our objective is to code pipex that should be executed in this way:
./pipex file1 cmd1 cmd2 file2
  • Execution of pipex should be similar to the next shell command:
< file1 cmd1 | cmd2 > file2

file1, file2 - filenames

cmd1, cmd2 - shell commands with their parameters


  • Handling errors must be like in shell

Bonus part

  • pipex should handle multiple pipes:
./pipex file1 cmd1 cmd2 cmd3 ... cmdn file2

is equivalent to next shell command:

< file1 cmd1 | cmd2 | cmd3 ... | cmdn > file2

  • pipex should support « and » when the first parameter is here_doc:
./pipex here_doc LIMITER cmd1 cmd2 file

is equivalent to next shell command:

cmd1 << LIMITER | cmd2 >> file

Installation and usage

  • Clone this repository:
git clone https://github.com/Haimasker/pipex.git
  • Go to the project folder:
cd pipex
  • To compile mandatory part:
make
  • To compile bonus part:
make bonus
  • After compilation just run pipex with your parameters.

pipex's People

Contributors

haimasker avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.