{"id":20731690,"url":"https://github.com/bgotink/worker","last_synced_at":"2026-04-28T03:05:59.280Z","repository":{"id":147557215,"uuid":"10551055","full_name":"bgotink/worker","owner":"bgotink","description":"A small C++ program allowing you to run other programs in batch mode","archived":false,"fork":false,"pushed_at":"2014-06-17T17:54:44.000Z","size":288,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-05T23:08:46.088Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bgotink.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-07T14:04:18.000Z","updated_at":"2014-06-17T17:54:40.000Z","dependencies_parsed_at":"2023-03-25T20:04:08.389Z","dependency_job_id":null,"html_url":"https://github.com/bgotink/worker","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/bgotink%2Fworker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgotink%2Fworker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgotink%2Fworker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgotink%2Fworker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bgotink","download_url":"https://codeload.github.com/bgotink/worker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243013389,"owners_count":20221723,"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":[],"created_at":"2024-11-17T05:16:30.257Z","updated_at":"2025-12-26T03:26:52.357Z","avatar_url":"https://github.com/bgotink.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Requirements\n\n* compiler\n    * a GCC compiler supporting C++11 ```std::thread```, ```std::mutex```, ```std::condition_variable``` and multiline strings\n    * Clang v3.3 or higher\n* the [boost](http://boost.org) regex, program_options and iostreams libraries\n* make\n\nTo install the requirements on OS X using [homebrew](//github.com/mxcl/homebrew):\n\n```\nbrew install make boost # clang is already available\n```\n\n## Building\n\nrun ```make```  \nThis has been tested on:\n\n| Version | Operating System | Compiler | libboost |\n| ------- | ---------------- | -------- | -------- |\n| 0.4.0   | OS X 10.10         | Clang 3.5           | installed via brew  |\n| 0.4.0   | OS X 10.9          | Clang 3.4           | installed via brew  |\n| 0.3.0   | OS X 10.8 and 10.9 | GCC 4.9 and Clang 3.3/3.4 | installed via brew  |\n| 0.3.0   | Ubuntu 12.04.2 LTS | GCC 4.8.1 and Clang | installed using APT |\n\n## Running\n\n```\nUsage: bin/worker [options] \u003ccommand\u003e \u003cargument\u003e [argument ...]\n\nOptions:\n  -h [ --help ]              produce this help message\n  -v [ --verbose ]           run verbose, shows program output\n  -q [ --quiet ]             run quiet, no program output\n  -o [ --output ]            show program output\n  -s [ --nooutput ]          do not show program output\n  -n [ --nthreads ] arg (=8) the maximum number of threads to use\n  --version                  print version info and exit\n\nPlaceholders:\n  You can use {} or {i} with i a non-negative integer to refer\n  to placeholders:\n    - ls {}\n    - cat {1} {0}\n  BASH-style replacements are supported (note: NOT a regular expression):\n    - cat {} \u003e {0/e/o}      # replace the first 'e' with 'o'\n    - cat {} \u003e {0//e/o}     # replace all 'e' with 'o'\n    - cat {} \u003e {0/%e/o}     # replace the final character\n                            # with 'o' if it is 'e'\n\nNotes:\n  The default number of threads differs depending on your system, it is the same\n  as the number of cores as returned by running\n    sysctl hw.ncpu\n\nExample usage:\n  The current directory contains story1, story1.part2, story2 and story2.part2.\n  Running the following command will result in the files *.part2 being appended\n  to the other files and being removed:\n    bin/worker -o 'cat {} \u003e\u003e {} \u0026\u0026 rm {0}' '*.part2' 'story{1,2}'\n\n  The current directory contains story1.part1, story1.part2, story2.part1 and\n  story2.part2. To create files story1 and story2 containing the entire stories:\n    bin/worker -o 'cat {} {0/%1/2} \u003e {0/%.part1/}' \\*.part1\n\n  The current directory contains some png's you want to open using `xdg-open`,\n  however, xdg-open doesn't support multiple arguments:\n    bin/worker 'xdg-open {}' '*.png'\n  If there's only one placeholder and it is located at the end of the command,\n  you can just leave it out:\n    bin/worker xdg-open '*.png'\n  If there's only one placeholder, all other arguments will be seen as\n  replacements:\n    bin/worker xdg-open *.png\n  Note that this is equivalent to using 'find', except for the multi-threading.\n    find . -maxdepth 1 -name \\*.png -exec xdg-open '{}' \\;\n```\n\nRun ```bin/worker``` to get a usage statement adapted for your system.  \n\n## License\n\nThis program is released under a modified MIT license. For the license, see LICENSE.md.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgotink%2Fworker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbgotink%2Fworker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgotink%2Fworker/lists"}