{"id":16164123,"url":"https://github.com/tleguern/substr","last_synced_at":"2026-07-04T02:33:00.806Z","repository":{"id":141735343,"uuid":"20803394","full_name":"tleguern/substr","owner":"tleguern","description":"An utility to extract substring from a string","archived":false,"fork":false,"pushed_at":"2021-12-26T15:57:52.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-28T04:24:55.266Z","etag":null,"topics":["c","extract-substring","finished","substr"],"latest_commit_sha":null,"homepage":"","language":"Roff","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tleguern.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":"2014-06-13T12:28:54.000Z","updated_at":"2021-12-26T15:57:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"5f149773-4065-45e5-9529-ce90431cb8bd","html_url":"https://github.com/tleguern/substr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tleguern/substr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tleguern%2Fsubstr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tleguern%2Fsubstr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tleguern%2Fsubstr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tleguern%2Fsubstr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tleguern","download_url":"https://codeload.github.com/tleguern/substr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tleguern%2Fsubstr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35108298,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-04T02:00:05.987Z","response_time":113,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["c","extract-substring","finished","substr"],"created_at":"2024-10-10T02:45:24.532Z","updated_at":"2026-07-04T02:33:00.787Z","avatar_url":"https://github.com/tleguern.png","language":"Roff","funding_links":[],"categories":[],"sub_categories":[],"readme":"# substr\n\nAn utility to extract substring from a string, inspired by the GNU\n`expr` extension of the same name. This implementation is under\nthe ISC licence.\n\n## Contents\n\n1. [Install](#install)\n2. [Instructions](#instruction)\n3. [Examples](#examples)\n4. [License](#license)\n\n## Install\n\n### Requires\n\n* C compiler ;\n* libbsd on Linux.\n\n### Build\n\nOn OpenBSD:\n\n    $ make\n    $ DESTDIR=~/ make install # or doas make install\n\nOn Linux:\n\n    $ LDADD=-lbsd CFLAGS=\"-D NEED_LIBBSD\" make\n    $ DESTDIR=~/ make install # or sudo make install\n\n## Instructions\n\nTo see a description of the options see the [man](./substr.md) page.\n\n## Example\n\n    $ substr hello 1 2\n    he\n    $ substr \"Omelette du fromage\" 13 7\n    fromage\n    $ substr toto 2\n    oto\n\n## License\n\nAll the code is licensed under the ISC License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftleguern%2Fsubstr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftleguern%2Fsubstr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftleguern%2Fsubstr/lists"}