{"id":19533249,"url":"https://github.com/jpikl/rew","last_synced_at":"2025-07-05T07:38:16.233Z","repository":{"id":39912073,"uuid":"247593693","full_name":"jpikl/rew","owner":"jpikl","description":"A text processing CLI tool that rewrites FS paths according to a pattern.","archived":false,"fork":false,"pushed_at":"2024-04-05T22:02:10.000Z","size":2742,"stargazers_count":40,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-14T07:41:57.135Z","etag":null,"topics":["command-line","command-line-tool","copy-files","regex","rename-files","replace-text","rust","terminal","text-processing","tool"],"latest_commit_sha":null,"homepage":"https://jpikl.github.io/rew/","language":"Rust","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/jpikl.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2020-03-16T02:33:27.000Z","updated_at":"2024-04-20T18:24:39.536Z","dependencies_parsed_at":"2024-01-17T02:40:55.107Z","dependency_job_id":"7e72347a-79cb-45ad-ba29-28f7005e4f66","html_url":"https://github.com/jpikl/rew","commit_stats":{"total_commits":484,"total_committers":1,"mean_commits":484.0,"dds":0.0,"last_synced_commit":"81b1cfc5cfb49f689d636374b8d0706f0c2de7c2"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpikl%2Frew","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpikl%2Frew/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpikl%2Frew/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpikl%2Frew/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpikl","download_url":"https://codeload.github.com/jpikl/rew/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224036327,"owners_count":17245035,"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":["command-line","command-line-tool","copy-files","regex","rename-files","replace-text","rust","terminal","text-processing","tool"],"created_at":"2024-11-11T02:06:16.028Z","updated_at":"2024-11-11T02:06:17.259Z","avatar_url":"https://github.com/jpikl.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rew\n\nA text processing CLI tool that rewrites FS paths according to a pattern.\n\n[![Build](https://img.shields.io/github/actions/workflow/status/jpikl/rew/ci.yml?branch=master)](https://github.com/jpikl/rew/actions/workflows/ci.yml)\n[![Coverage](https://img.shields.io/codecov/c/github/jpikl/rew/master?token=9K88E1ZCBU)](https://codecov.io/gh/jpikl/rew)\n[![Version](https://img.shields.io/crates/v/rew.svg)](https://crates.io/crates/rew)\n[![Dependencies](https://deps.rs/repo/github/jpikl/rew/status.svg)](https://deps.rs/repo/github/jpikl/rew)\n[![Downloads](https://img.shields.io/crates/d/rew)](https://crates.io/crates/rew)\n[![License](https://img.shields.io/crates/l/rew.svg)](https://github.com/jpikl/rew/blob/master/LICENSE.md)\n\n## How rew works\n\n1. Reads values from standard [input](https://jpikl.github.io/rew/input.html).\n2. Rewrites them according to a [pattern](https://jpikl.github.io/rew/pattern.html).\n3. Prints results to standard [output](https://jpikl.github.io/rew/output.html).\n\n![How rew works](docs/images/diagram.svg)\n\nInput values are assumed to be FS paths, however, `rew` is able to process any UTF-8 encoded text.\n\n```bash\nfind -iname '*.jpeg' | rew 'img_{C}.{e|l|r:e}'\n```\n\n`rew` is also distributed with two accompanying utilities (`mvb` and `cpb`) which move/copy files and directories, based on `rew` output.\n\n```bash\nfind -iname '*.jpeg' | rew 'img_{C}.{e|l|r:e}' -d | mvb\n```\n\n## Documentation\n\n- [📦 Installation](https://jpikl.github.io/rew/install)\n- [🚀 Usage](https://jpikl.github.io/rew/usage)\n- [✏️ Pattern](https://jpikl.github.io/rew/pattern)\n  - [🛤 Path filters](https://jpikl.github.io/rew/filters/path)\n  - [🆎 Substring filters](https://jpikl.github.io/rew/filters/substr)\n  - [📊 Field filters](https://jpikl.github.io/rew/filters/field)\n  - [🔍 Replace filters](https://jpikl.github.io/rew/filters/replace)\n  - [⭐️ Regex filters](https://jpikl.github.io/rew/filters/regex)\n  - [🎨 Format filters](https://jpikl.github.io/rew/filters/format)\n  - [🏭 Generators](https://jpikl.github.io/rew/filters/generate)\n- [⌨️ Input](https://jpikl.github.io/rew/input)\n- [💬 Output](https://jpikl.github.io/rew/output)\n- [🔬 Comparison](https://jpikl.github.io/rew/comparison)\n- [🗃 Examples](https://jpikl.github.io/rew/examples)\n- [📈 Changelog](https://jpikl.github.io/rew/changelog)\n\n## License\n\n`rew` is licensed under the [MIT license](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpikl%2Frew","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpikl%2Frew","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpikl%2Frew/lists"}