{"id":13577116,"url":"https://github.com/shakibamoshiri/rinp","last_synced_at":"2025-04-15T01:51:58.869Z","repository":{"id":128567117,"uuid":"119354068","full_name":"shakibamoshiri/rinp","owner":"shakibamoshiri","description":"Simple, Beautiful, Modern; \"Run in Parallel\" CLI","archived":false,"fork":false,"pushed_at":"2018-07-03T08:36:00.000Z","size":236,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T01:51:53.498Z","etag":null,"topics":["multi-command","rinp","run-in-parallel","xargs"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shakibamoshiri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-01-29T08:27:58.000Z","updated_at":"2025-02-11T03:24:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"f0c96afd-2e8b-4ebc-a940-097a8c2bd02f","html_url":"https://github.com/shakibamoshiri/rinp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shakibamoshiri%2Frinp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shakibamoshiri%2Frinp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shakibamoshiri%2Frinp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shakibamoshiri%2Frinp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shakibamoshiri","download_url":"https://codeload.github.com/shakibamoshiri/rinp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248991540,"owners_count":21194894,"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":["multi-command","rinp","run-in-parallel","xargs"],"created_at":"2024-08-01T15:01:18.167Z","updated_at":"2025-04-15T01:51:58.848Z","avatar_url":"https://github.com/shakibamoshiri.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"\u003cbr\u003e\n\u003cp id=\"top\" align=\"center\"\u003e\n  \u003ca href=\"#usage\"\u003e\n    \u003cimg src=\"./res/usage.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"#screenshot\"\u003e\n    \u003cimg src=\"./res/screenshot.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"#examples\"\u003e\n    \u003cimg src=\"./res/examples.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"#goal\"\u003e\n    \u003cimg src=\"./res/goal.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"#bottom\"\u003e\n    \u003cimg src=\"./res/bottom.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/k-five/rinp/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"./res/license.svg\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\u003ca href=\"https://github.com/k-five/rinp\"\u003e\n  \u003cimg src=\"https://github.com/k-five/rinp/blob/master/res/rinp.banner.gif\" /\u003e\n\u003c/a\u003e\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\u003cp align=\"center\"\u003e\nwelcome to a Simple, Beautiful, Modern CLI application\u003cbr\u003e\nfor running multi-commands in parallel.\n\u003c/p\u003e\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\u003ch1 id=\"usage\" align=\"center\"\u003eusage\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u0026#9899; usage\n  \u0026#9898; \u003ca href=\"#screenshot\"\u003escreenshot\u003c/a\u003e\n  \u0026#9898; \u003ca href=\"#examples\"\u003eexamples\u003c/a\u003e\n  \u0026#9898; \u003ca href=\"#goal\"\u003egoal\u003c/a\u003e\n  \u0026#9898; \u003ca href=\"#bottom\"\u003ebottom\u003c/a\u003e\n  \u0026#9898; \u003ca href=\"#top\"\u003etop\u003c/a\u003e\n\u003c/p\u003e\n\u003cbr\u003e\n\n\n 1. `git clone https://github.com/k-five/rinp`\n 2. `cd rinp/src/`\n 3. `make build`\n\nsample output after `make build`\n\n```\nbuild mode:\ncompile: main.c rinp.c... okay\nlinking: main.o rinp.o... okay\nNow you can install it by: sudo cp rinp /usr/bin/\n\"sude\" is for root privilege. Use your own.\n```\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\u003ch1 id=\"screenshot\" align=\"center\"\u003escreenshot\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u0026#9898; \u003ca href=\"#usage\"\u003eusage\u003c/a\u003e\n  \u0026#9899; screenshot\n  \u0026#9898; \u003ca href=\"#examples\"\u003eexamples\u003c/a\u003e\n  \u0026#9898; \u003ca href=\"#goal\"\u003egoal\u003c/a\u003e\n  \u0026#9898; \u003ca href=\"#bottom\"\u003ebottom\u003c/a\u003e\n  \u0026#9898; \u003ca href=\"#top\"\u003etop\u003c/a\u003e\n\u003c/p\u003e\n\u003cbr\u003e\n\nHere is a screen-shot of running **10** `sleep` commands simultaneously. One of them is failed and others are succeeded.\n\n\u003cbr\u003e\n\u003ca href=\"https://github.com/k-five/rinp\"\u003e\n  \u003cimg src=\"https://github.com/k-five/rinp/blob/master/res/screenshot.png\" /\u003e\n\u003c/a\u003e\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\u003ch1 id=\"examples\" align=\"center\"\u003eexamples\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u0026#9898; \u003ca href=\"#usage\"\u003eusage\u003c/a\u003e\n  \u0026#9898; \u003ca href=\"#screenshot\"\u003escreenshot\u003c/a\u003e\n  \u0026#9899; examples\n  \u0026#9898; \u003ca href=\"#goal\"\u003egoal\u003c/a\u003e\n  \u0026#9898; \u003ca href=\"#bottom\"\u003ebottom\u003c/a\u003e\n  \u0026#9898; \u003ca href=\"#top\"\u003etop\u003c/a\u003e\n\u003c/p\u003e\n\u003cbr\u003e\n\nAs a quick start, you can use `echo -e` command. `-e` is for handing special characters like newline (= `'\\n'`) and so on.  \n\n  - `echo -e '1\\ntwo\\n3' | rinp -le sleep` runs **3** `sleep` commands which 1 of them is failed and the other two are succeed.\n  - `echo -e '1\\n\\n\\n\\n  | rinp -le sleep` runs only one `sleep` command, because newlines are ignored when they are just empty lines.\n\nIf you liked to see behind the scene then try using `watch` command as follows:  \n`watch -n 1 -exec ps --forest -g -p process-id-of-your-terminal`  \nfor watching all the children of your Terminal every 1 second. You will face something like this:  \n\n\u003ca href=\"https://www.gnu.org/licenses/gpl-3.0.en.html\"\u003e\n  \u003cimg src=\"https://github.com/k-five/rinp/blob/master/res/screenshot.watch.png\" /\u003e\n\u003c/a\u003e\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\u003ch1 id=\"goal\" align=\"center\"\u003egoal\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u0026#9898; \u003ca href=\"#usage\"\u003eusage\u003c/a\u003e\n  \u0026#9898; \u003ca href=\"#screenshot\"\u003escreenshot\u003c/a\u003e\n  \u0026#9898; \u003ca href=\"#examples\"\u003eexamples\u003c/a\u003e\n  \u0026#9899; goal\n  \u0026#9898; \u003ca href=\"#bottom\"\u003ebottom\u003c/a\u003e\n  \u0026#9898; \u003ca href=\"#top\"\u003etop\u003c/a\u003e\n\u003c/p\u003e\n\u003cbr\u003e\n\n\nThis app is suitable for running muilt-lengthy commands that you do NOT want to see their outputs. I had a lot of `.mp4` files\nthat should be converted to `.mp3`. Of course I could use `xargs` with redirection (= `\u0026\u003e /dev/null`), but I also liked to see\nif the commands are failed or succeeded.\u003cbr\u003e\nPlus practicing some advanced techniques in `C` and `Linux Programming` that I have learned and some tiny of UI/UX.\nI daily use it for:\n\n`ls *.mp4 | rinp -le ffmpeg -i {} {}.mp3`\n\nwhich converts `mp4` files to `.mp3`s. Of course you can use it for `cp` or `mv` or anything you like.\nI also tried to add some comments to the code, so you can read it as an educational code.\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\u003ch1 id=\"license\" align=\"center\"\u003elicense\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u0026#9898; \u003ca href=\"#usage\"\u003eusage\u003c/a\u003e\n  \u0026#9898; \u003ca href=\"#screenshot\"\u003escreenshot\u003c/a\u003e\n  \u0026#9898; \u003ca href=\"#examples\"\u003eexamples\u003c/a\u003e\n  \u0026#9898; \u003ca href=\"#gaol\"\u003egoal\u003c/a\u003e\n  \u0026#9899; bottom\n  \u0026#9898; \u003ca href=\"#top\"\u003etop\u003c/a\u003e\n\u003c/p\u003e\n\u003cp id=\"bottom\" align=\"center\"\u003e\n  rinp copyright \u0026copy; 2017 Shakiba\n  \u003cbr\u003e\n  \u003cbr\u003e\n  ▒█▀▀█ ▒█▀▀█ ▒█░░░ █▀▀█\u003cbr\u003e\n  ▒█░▄▄ ▒█▄▄█ ▒█░░░ ░░▀▄\u003cbr\u003e\n  ▒█▄▄█ ▒█░░░ ▒█▄▄█ █▄▄█\u003cbr\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshakibamoshiri%2Frinp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshakibamoshiri%2Frinp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshakibamoshiri%2Frinp/lists"}