$ git clone https://github.com/alissonmarcs/pipex.git
$ cd pipex
$ make bonus
Compiling with make bonus you will be able to use any number of commands and here_doc.
Quotes are mandatory when command receive arguments.
$ ./pipex_bonus Makefile "tr A-Z a-z" nl outfile
Makefilewill be input fortr.tr A-Z a-ztranslate all uppercase chars to lower case.nlenumerate lines.outfiledestination file.
$ ./pipex_bonus Makefile "ps aux" nl outfile
Makefilewill be input forps, butpsdoesn't receive input, so it will not be used.ps auxlist current running processes.nlenumerate lines.outfiledestination file.
$ ./pipex_bonus .gitignore "tr a-z A-Z" nl outfile
.gitignorewill be input fortr.trtranslate all lowercase chars to uppercase.nlenumerate lines.outfiledestination file.
$ ./pipex_bonus Makefile nl tac "head -25" outfile
Makefilewill be input file fornl.nlenumerate lines.tacreverse lines."head -25"gets first 25 lines of it's sdtin.outfiledestination file.
$ ./pipex_bonus Makefile "tr A-Z a-z" nl tac cat "tail -25" outfile
Makefilewill be input file fortr."tr A-Z a-z"translate all uppercase chars to lowercase.nlenumerate lines.tacreverse lines.catchange any data, simply get it's stdin and writes to stdout."tail -25"get last 25 lines from it's stdin.
$ ./pipex_bonus Makefile "ls -la ../../" "tr a-z A-Z" "nl" outfile
Makefilewill be input file forls, butlsdoesn't receive input, so it will not be used."ls -la ../../"long listing of grandfather folder.tr a-z A-Ztranslate all lowercase chars to uppercase.nlenumerate lines.outfiledestination file.
$ ./pipex_bonus here_doc LIMITER "tr a-z A-Z" nl outfile
- when 
here_doc, user must type the input for first command. LIMITERmust be typed when user finished to type input data."tr a-z A-Z"translate all lowercase chars to uppercase.nlenumerate lines.outfiledestination file. Whenhere_doc, the output file is open in append mode.
$ ./pipex_bonus here_doc stop nl tac outfile
here_doc stopenable here_doc and delimiter will be "stop".nlenumerate input lines.tacreverse input lines.outfiledestination file, open in append mode.

