{"id":20987197,"url":"https://github.com/haxpor/rcs","last_synced_at":"2025-10-26T22:02:31.072Z","repository":{"id":149553095,"uuid":"340349023","full_name":"haxpor/rcs","owner":"haxpor","description":"Recursive Code Search for convenience wrapping \"grep -nr\". It should reduce your long typing a bit.","archived":false,"fork":false,"pushed_at":"2021-11-05T21:14:04.000Z","size":26,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-20T07:35:23.802Z","etag":null,"topics":["bash","bashrc","command-line-tool","grep","grep-search"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/haxpor.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":"2021-02-19T11:29:33.000Z","updated_at":"2021-11-05T21:14:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"51944ed1-de80-4645-9395-4d026b841272","html_url":"https://github.com/haxpor/rcs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxpor%2Frcs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxpor%2Frcs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxpor%2Frcs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxpor%2Frcs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haxpor","download_url":"https://codeload.github.com/haxpor/rcs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243394282,"owners_count":20283940,"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":["bash","bashrc","command-line-tool","grep","grep-search"],"created_at":"2024-11-19T06:16:16.288Z","updated_at":"2025-10-26T22:02:26.026Z","avatar_url":"https://github.com/haxpor.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"[![donate button](https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000\u0026amp;style=flat)](https://github.com/haxpor/donate)\n# rcs\n\nRecursive Code Search for convenient on top of `grap -nr` as shell function.\n\n# Installation\n\n## Manual\n\nPut `.bashrc_rcs` file into your home directory, then edit your `~/.bashrc` or better yet `~/.bash_aliases`\nto source such file like following\n\n```\n. ~/.bashrc_rcs\n```\n\n## Debian/Ubuntu\n\n## Non-pinning way (direct install)\n\nEasiest way to install without having to pinning priority of package (thus a need\nto edit some files)\n\n* `sudo add-apt-repository ppa:haxpor/combined`\n* `sudo apt-cache showpkg rcs` - due to there is existing same name package offered by Ubuntu\n* Grab the version string in `Versions:` section that corresponding to `rcs` package offered by `haxpor`\n* `sudo apt install rcs=\u003cversion-string\u003e`\n\n## Pinning package with higher priority\n\nSee this [article](https://www.claudiokuenzler.com/blog/440/higher-preference-priority-apt-repository-over-another).\n\n# Available flags\n\n* `-f \u003cfile-type\u003e` - specify the type of file for the tool to find recursively. The available types can be found via `rcs --help`, \n* `-s \u003csearch-term\u003e` - specify the search term, this will be parsed the same if specified to `grep`\n* `-i` - specify that searching would be in case-insensitive case\n* `-n` - specify that there would be no color output as output from the tool so you can be sure it will be compatible with tool that read its output as input\n* `-B` - specify number of lines to include before the matched search term\n- `-A` - specify number of lines to include after the matched search term\n- `-v` - specify to use inverse search mode, that means not include that specified search term\n- `-P` - specify to enable perl regex\n- `-o` - specify to output only matched result\n\n# Usage\n\nFor some of flags usage, see below.\n\nAfter installation, source either your `~/.bashrc` or `~/.bash_aliases` with `source \u003cfile\u003e` (substitute\nyour bash file into it), then you're ready to use it.\n\nYou can see full detail of help message included list of supported formats by executing the following\n\n```\nrcs --help\n```\n\nEx. Search for target text of `void OnChange(` via `-s` from header files via `-f`\n\n```\nrcs -s void\\ OnChange\\( -f header\n```\n\nEx. Same but ignore case via `-i`\n\n```\nrcs -s void\\ OnChange\\( -f header -i\n```\n\nEx. Same but also output before \u0026 after number of lines via `-B \u003cN\u003e` and `-A \u003cN\u003e` respectively\n\n```\nrcs -s void\\ OnChange\\( -f header -i -B 3 -A 3\n```\n\nEx. Same but supress color output via `-n` (so it would work correct with tools that don't understand color code from shell)\n\n```\nrcs -s void\\ OnChange\\( -f header -i -B 3 -A 3 -n\n```\n\n# License\nWasin Thonkaew, MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaxpor%2Frcs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaxpor%2Frcs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaxpor%2Frcs/lists"}