{"id":22438929,"url":"https://github.com/cypri1-dev/42_pipex","last_synced_at":"2026-05-02T09:32:43.791Z","repository":{"id":231342249,"uuid":"781519839","full_name":"cypri1-dev/42_pipex","owner":"cypri1-dev","description":"This project is part of the curriculum at Ecole 42. \"42_pipex\" is a program that simulates the functionality of the shell command pipeline.","archived":false,"fork":false,"pushed_at":"2024-04-30T13:38:15.000Z","size":81,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T14:18:16.225Z","etag":null,"topics":["bash","mandatory","pipe","pipex","pipex-42","pipex42"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cypri1-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-03T14:37:46.000Z","updated_at":"2024-04-30T13:38:19.000Z","dependencies_parsed_at":"2024-04-28T23:24:35.366Z","dependency_job_id":"e0a7a4f5-1ac3-42e5-a0b5-b9a075665ea8","html_url":"https://github.com/cypri1-dev/42_pipex","commit_stats":null,"previous_names":["cypri1-dev/42_pipex"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cypri1-dev%2F42_pipex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cypri1-dev%2F42_pipex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cypri1-dev%2F42_pipex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cypri1-dev%2F42_pipex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cypri1-dev","download_url":"https://codeload.github.com/cypri1-dev/42_pipex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245815074,"owners_count":20676860,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","mandatory","pipe","pipex","pipex-42","pipex42"],"created_at":"2024-12-06T01:12:12.364Z","updated_at":"2026-05-02T09:32:43.740Z","avatar_url":"https://github.com/cypri1-dev.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"##\n\u003ch1\u003e\u003cimg src=\"https://github.com/ayogun/42-project-badges/blob/main/covers/cover-pipex-bonus.png?raw=true\"\u003c/h1\u003e\n\n## Description\nThe `pipex` program takes four arguments:\n- `infile`: the input file to be read and piped into the first command.\n- `cmd1`: the first command to be executed.\n- `cmd2`: the second command to be executed.\n- `outfile`: the output file where the result of the pipeline will be written.\n\nThe program executes the command pipeline `cmd1 | cmd2` and redirects the input and output accordingly, similar to the behavior of the shell command `|` (pipe).\n\n## Projects Components Table\nThis is an overview of the main components located in the \"sources\" directory of the 42_pipex project.\n\n| File/Header File       | Description                                                                           |\n|------------------------|---------------------------------------------------------------------------------------|\n| `libft`                | A directory containing the Libft library, used for auxiliary functions required for the implementation of pipex.                               |\n| `Makefile`             | The Makefile script for automating project compilation. It includes rules for compiling pipex and additional rules for project management.   |\n| `sources/pipex.c`              | The main file containing the pipex function, responsible for executing the command pipeline and file redirection.                              |\n| `sources/utils.c`      | Contains utility functions used by the pipex program for tasks such as string manipulation and error handling.                               |\n| `sources/pipex.h`      | The header file containing function prototypes and macro declarations necessary for using the pipex program.                               |\n\n## Usage\nTo use the `pipex` program, compile it using the provided Makefile. Then, run the program with the required arguments:\n```bash\n./pipex infile \"cmd1\" \"cmd2\" outfile\n```\n## Features\n42_pipex offers the following features:\n\n- **Command Pipeline Simulation:** Executes the command pipeline `cmd1 | cmd2` to simulate the behavior of shell pipes.\n\n- **File Redirection:** Redirects input and output files as specified by the user to facilitate the execution of the command pipeline.\n\n- **Error Handling:** Properly handles errors and returns appropriate exit codes in case of failure.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcypri1-dev%2F42_pipex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcypri1-dev%2F42_pipex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcypri1-dev%2F42_pipex/lists"}