{"id":20275692,"url":"https://github.com/bleutner/big_grep","last_synced_at":"2025-07-29T05:04:54.757Z","repository":{"id":77026692,"uuid":"485693293","full_name":"bleutner/big_grep","owner":"bleutner","description":"big_grep - grep's hungry cousin","archived":false,"fork":false,"pushed_at":"2022-04-26T09:22:08.000Z","size":1646,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T01:31:29.783Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bleutner.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":"2022-04-26T08:12:46.000Z","updated_at":"2022-04-26T09:27:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"2aeb8380-955e-45f9-b174-52f74c903c09","html_url":"https://github.com/bleutner/big_grep","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bleutner/big_grep","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bleutner%2Fbig_grep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bleutner%2Fbig_grep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bleutner%2Fbig_grep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bleutner%2Fbig_grep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bleutner","download_url":"https://codeload.github.com/bleutner/big_grep/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bleutner%2Fbig_grep/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267632858,"owners_count":24118748,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"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":[],"created_at":"2024-11-14T13:10:38.010Z","updated_at":"2025-07-29T05:04:54.735Z","avatar_url":"https://github.com/bleutner.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# big_grep - grep's hungry cousin\n\nbig_grep was written to complement GNU grep for a very large number of matching patterns.\nEssentially it does this:\n\n```bash\ngrep \"pattern1|pattern2|pattern3\" reference_file\n```\n\nHowever, if you have a lot of patterns you want to match with GNU grep you will at some point hit the limits of argument length.\nBig grep uses a pattern file where each line is a pattern, and matches those.\n\n## Installation\nNote that compilation requires libboost-regex headers, because I wanted to be able to user Perl-style regexes and usually have boost available in all my environments (`libboost-regex-dev` on Ubuntu). \n\n```bash\n# Clone\ngit clone https://github.com/bleutner/big_grep.git \ncd big_grep\n\n# Compile\nmake\n\n## Run\nbin/big_grep -h\n```\n\n## Usage\n\n```\nUSAGE: big_grep [args] -p \u003cpatternfile\u003e -i \u003cinputfile\u003e \n\nDESCRIPTION:\n  Matches every pattern of \u003cpatternfile\u003e against every line in \u003cinputfile\u003e.\n  This is useful for large numbers of patterns, which exceed the normal 'GNU grep' \n  input limits. Inclusive (default) or exclusive matching modes are possible.\n\nARGUMENTS:\n  -i [filename]: target input file\n  -p [filename]: file with patterns to match\n  -o [filename]: output file (optional)\n  -v: \u003cflag\u003e inverse mode, i.e. exclude matches (optional)\n  -r: \u003cstring\u003e perl-style regex which is used to extract a substring from \u003cinputfile\u003e, \n      which is then searched for in \u003cpatternfile\u003e (optional)\n  -t: \u003cflag\u003e test regex on first line of \u003cinputfile\u003e and exit\n\n  -h: \u003cflag\u003e print help and exit\n  -V: \u003cflag\u003e print program version\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbleutner%2Fbig_grep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbleutner%2Fbig_grep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbleutner%2Fbig_grep/lists"}