{"id":18668644,"url":"https://github.com/kstenschke/grepc","last_synced_at":"2026-04-27T20:31:21.108Z","repository":{"id":147562842,"uuid":"362947015","full_name":"kstenschke/grepc","owner":"kstenschke","description":"Grep Chart: List strings that match a pattern in file(s), with and sorted by the amount of occurrences. ","archived":false,"fork":false,"pushed_at":"2021-05-13T22:49:40.000Z","size":907,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-18T07:40:33.272Z","etag":null,"topics":["cli","cli-tool","find","find-in-files","gplv3","grep","linux","regex","regular-expression"],"latest_commit_sha":null,"homepage":"","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/kstenschke.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2021-04-29T21:04:25.000Z","updated_at":"2021-05-13T22:49:42.000Z","dependencies_parsed_at":"2023-06-18T10:18:13.929Z","dependency_job_id":null,"html_url":"https://github.com/kstenschke/grepc","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/kstenschke/grepc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kstenschke%2Fgrepc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kstenschke%2Fgrepc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kstenschke%2Fgrepc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kstenschke%2Fgrepc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kstenschke","download_url":"https://codeload.github.com/kstenschke/grepc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kstenschke%2Fgrepc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32354564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","cli-tool","find","find-in-files","gplv3","grep","linux","regex","regular-expression"],"created_at":"2024-11-07T08:44:26.576Z","updated_at":"2026-04-27T20:31:21.093Z","avatar_url":"https://github.com/kstenschke.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Grep Chart\n\n[![Build Status](https://api.travis-ci.com/kstenschke/grepc.svg?branch=main)](https://travis-ci.com/kstenschke/grepc)\n[![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/kstenschke/grepc.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/kstenschke/grepc/context:cpp)\n[![CodeFactor](https://www.codefactor.io/repository/github/kstenschke/grepc/badge)](https://www.codefactor.io/repository/github/kstenschke/grepc)\n\n\n## Synopsis\n\n``grepc PATTERN [FILE]``  \n``grepc -v PATTERN [FILE]``\n``grepc -m=\u003cMIN_OCCURRENCES\u003e PATTERN [FILE]``\n\nPATTERN = an extended regular expression (ERE).  \nFILE = a relative or absolute path to a file or directory.\n\n\n## Description\n\n**grepc** searches for PATTERN in each FILE. If no FILE is given, recursively \nsearches the working directory.  \n**grepc** prints all matches and their amount of occurrences.  \nPrinted matches are sorted: 1. descending by amount of occurrences, 2. ascending\nalphabetically by matching string.\n\n\n## Table of Contents\n\n* [Synopsis](#synopsis)\n* [Description](#description)\n* [Table of Contents](#table-of-contents)\n* [Options](#options)\n  * [-m, --min](#-m---min)\n  * [-v, --verbose](#-v---verbose)\n  * [-V, --version](#-v---version)\n* [Usage examples](#usage-examples)\n  * [Find floating numbers sorted by popularity](#find-floating-numbers-and-their-popularity)\n  * [Find floating numbers sorted by popularity](#find-floating-numbers-and-their-popularity)\n* [Build from source](#build-from-source)\n* [Install](#install)\n* [Conventions](#conventions)\n* [Used third party applications](#used-third-party-applications)\n* [Author and License](#author-and-license)\n\n\n## Options\n\n### -m=, --min=\n\nMinimum amount of occurrences. Matching string with less occurrences than the\ngiven amount are not printed.\n\n\n### -v, --verbose\n\nPrint a results summary additionally to the grep chart:\n\n* amount of total matches\n* amount of matching strings\n* amount of files searched\n\n\n### -V, --version\n\nPrint information about installed version of **grepc**, its license and \nauthor(s).\n\n\n## Usage examples  \n\n### Find strings wrapped in double quotes, sorted by popularity\n  \nFind strings that are enclosed in double quotes, with a minimum length of ten\ncharacters:\n\n``grepc '\"[A-Za-z ]{10,}\"' ./src``  \n\n**Output e.g.:**\n\n```\n156 \"White Christmas\"\n155 \"Candle in the Wind\"\n154 \"In the Summertime\"\n153 \"I will always love you\"\n152 \"Rock around the Clock\"\n151 \"Its now or never\"\n150 \"We are the world\"\n```\n\n**Note:** to find strings that are enclosed in single quotes, these must be\nescaped as: ``'\\''``.  \nE.g.: ``grepc \"'\\''[A-Za-z]{4,}'\\''\"`` \n\n\n### Find floating numbers sorted by popularity  \n\nFind floating numbers that have at least 14 decimal places.\n\n``grepc -v '(\\d\\.\\d+){16,}' ./src``\n\n**Output e.g.:**\n\n```\nFound 177 matches in 83 out of 90 files.\nThere are 2 different matching strings:\n\n91 3.14159265358979\n86 2.71828182845904\n```\n\n\n## Build from source\n\n``cmake CMakeLists.txt; make``\n\n\n## Install\n\nBuild from source, than: ``sudo make install``\n\n\n## Conventions\n\nThe source code of **grepc** follows the Google C++ Style Guide, \nsee: https://google.github.io/styleguide/cppguide.html    \n\n**grepc** follows the [Semantic Versioning](https://semver.org) Scheme.\n\n\n## Changelog\n\nSee [CHANGELOG.md](CHANGELOG.md)\n\n## Used third party applications\n\n| Application                                                                                        | License                                                                      |\n| -------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |\n| [GNU Grep](https://www.gnu.org/software/grep/)                                                     | [GNU General Public License](https://www.gnu.org/licenses/licenses.html#GPL) |\n| [GNU wc](https://www.gnu.org/software/coreutils/manual/html_node/wc-invocation.html#wc-invocation) | [GNU General Public License](https://www.gnu.org/licenses/licenses.html#GPL) |\n\n\n## Author and License\n\n**grepc** was written by Kay Stenschke and is licensed under the \n[GNU General Public License V3.0](https://www.gnu.org/licenses/licenses.html#GPL)  \n\n```\nPermissions of this strong copyleft license are conditioned on making available \ncomplete source code of licensed works and modifications, which include larger \nworks using a licensed work, under the same license. Copyright and license \nnotices must be preserved. Contributors provide an express grant of patent \nrights.\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkstenschke%2Fgrepc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkstenschke%2Fgrepc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkstenschke%2Fgrepc/lists"}