{"id":21723156,"url":"https://github.com/theiskaa/replace","last_synced_at":"2026-03-05T12:02:07.821Z","repository":{"id":191257431,"uuid":"684267803","full_name":"theiskaa/replace","owner":"theiskaa","description":"Replace X with Y in Z files","archived":false,"fork":false,"pushed_at":"2023-11-05T17:16:24.000Z","size":38,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T11:45:40.815Z","etag":null,"topics":["replace","replace-in-files","replce-text"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theiskaa.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-08-28T19:44:35.000Z","updated_at":"2025-01-25T08:11:51.000Z","dependencies_parsed_at":"2023-08-29T03:55:42.221Z","dependency_job_id":"9f291757-2169-4cd5-8a32-25aaa043c6cb","html_url":"https://github.com/theiskaa/replace","commit_stats":null,"previous_names":["theiskaa/replace"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/theiskaa/replace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theiskaa%2Freplace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theiskaa%2Freplace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theiskaa%2Freplace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theiskaa%2Freplace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theiskaa","download_url":"https://codeload.github.com/theiskaa/replace/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theiskaa%2Freplace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30123729,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T11:11:57.947Z","status":"ssl_error","status_checked_at":"2026-03-05T11:11:29.001Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["replace","replace-in-files","replce-text"],"created_at":"2024-11-26T02:37:22.922Z","updated_at":"2026-03-05T12:02:07.799Z","avatar_url":"https://github.com/theiskaa.png","language":"C","readme":"\u003cp align=\"center\"\u003e\n \u003cimg width=\"450\" src=\"https://github.com/theiskaa/replace/assets/59066341/3959ea69-a62e-4aed-bb99-cbc92db7253e\" alt=\"replace Logo\"\u003e\n\u003c/p\u003e\n\n---\n\nThe replace/rp is a versatile tool that enables you to perform efficient replacement operations within specified files. This tool facilitates the seamless update of content across multiple files simultaneously. Whether you need to correct a typo, update a key term, or make any other content changes.\n\n## Usage\n\n1. Identify the content you want to replace (represented by `{X}`).\n2. Specify the replacement content (represented by `{Y}`).\n3. Select the target files or folders (represented by `{Z}`) where the replacement operation will be applied.\n\n## Example\n\nSuppose you have a collection of Markdown files where the word \"color\" is used, but you want to standardize it as \"colour.\" You can achieve this using the replace as follows:\n\n```shell\nrp \"color\" \"colour\" \"folder_name/*.md\"\n```\n\nIn this example:\n- `{X}` is \"color\"\n- `{Y}` is \"colour\"\n- `{Z}` is the set of Markdown files within the specified folder (`folder_name`)\n\nExecuting the above command will systematically replace all occurrences of \"color\" with \"colour\" within the designated Markdown files.\n\n## Syntax\n```\nrp {OPTIONS} {X} {Y} ... {Z}\n```\n\nThe syntax of the replace involves three main components: `{OPTIONS}`, `{X}`, `{Y}`, and one or more instances of `{Z}`. The components are explained below:\n\n- `{OPTIONS}`: You can use the `-w` or `--word` option to enable word-based replacements, ensuring an exact, space-free match for segments to be replaced.\n- `{X}` and `{Y}`: These are both strings representing the source and target for replacement, respectively. By specifying `{X}` as the content to be replaced and `{Y}` as the content to replace it with, you control what changes are made within the files.\n- `{Z}` elements: These denote the files in which the replacement operation will take place. Each `{Z}` can refer to a folder or file name, allowing you to define the scope of files to be included in the replacement operation. If `{Z}` is not provided at all, the \"replace\" operation will be applied to all matching values found under the current folder. This means that any occurrence of `{X}` within the files located in the current directory will be replaced with `{Y}`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheiskaa%2Freplace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheiskaa%2Freplace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheiskaa%2Freplace/lists"}