{"id":20461457,"url":"https://github.com/pythonbyte/grep-command-rust","last_synced_at":"2025-07-23T10:07:10.016Z","repository":{"id":253596640,"uuid":"843974347","full_name":"pythonbyte/grep-command-rust","owner":"pythonbyte","description":"Implementation of the famous GREP command using Rust 🦀","archived":false,"fork":false,"pushed_at":"2024-08-18T02:16:19.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T11:35:27.786Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pythonbyte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-08-18T01:49:43.000Z","updated_at":"2024-08-18T02:16:21.000Z","dependencies_parsed_at":"2024-08-18T02:52:16.916Z","dependency_job_id":null,"html_url":"https://github.com/pythonbyte/grep-command-rust","commit_stats":null,"previous_names":["pythonbyte/grep-command-rust"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pythonbyte/grep-command-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonbyte%2Fgrep-command-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonbyte%2Fgrep-command-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonbyte%2Fgrep-command-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonbyte%2Fgrep-command-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pythonbyte","download_url":"https://codeload.github.com/pythonbyte/grep-command-rust/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonbyte%2Fgrep-command-rust/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266658082,"owners_count":23963626,"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-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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-15T12:25:38.984Z","updated_at":"2025-07-23T10:07:09.988Z","avatar_url":"https://github.com/pythonbyte.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust Grep-like Tool\n\n## Introduction\n\nThis project implements a simple grep-like tool in Rust. It provides basic regular expression matching functionality, allowing users to search for patterns in text input. This tool is designed as an educational project to demonstrate regex matching algorithms and Rust programming concepts.\n\n## Features\n\n- Basic regex pattern matching\n- Support for the following regex features:\n  - `^` for start of string anchor\n  - `$` for end of string anchor\n  - `.` for any character\n  - `*` for zero or more repetitions of the previous character\n- Command-line interface similar to grep\n\n## Installation\n\nTo use this tool, you need to have Rust installed on your system. If you don't have Rust installed, you can get it from [https://www.rust-lang.org/tools/install](https://www.rust-lang.org/tools/install).\n\nOnce Rust is installed, follow these steps:\n\n1. Clone the repository:\n   ```\n   git clone https://github.com/yourusername/rust-grep-tool.git\n   cd rust-grep-tool\n   ```\n\n2. Build the project:\n   ```\n   cargo build --release\n   ```\n\nThe executable will be available in the `target/release` directory.\n\n## Usage\n\nThe basic usage of the tool is as follows:\n\n```\n./rust-grep-tool -E \u003cpattern\u003e\n```\n\nThe tool reads input from stdin and prints whether the input matches the given pattern.\n\n### Examples\n\n1. Search for a simple string:\n   ```\n   echo \"Hello, World\" | ./rust-grep-tool -E \"World\"\n   ```\n\n2. Use a start-of-line anchor:\n   ```\n   echo \"Hello, World\" | ./rust-grep-tool -E \"^Hello\"\n   ```\n\n3. Use a wildcard and repetition:\n   ```\n   echo \"aaabbb\" | ./rust-grep-tool -E \"a*b\"\n   ```\n\n## Limitations\n\nThis is a basic implementation and does not support all features of a full-fledged regex engine. It's primarily intended for educational purposes and may not be suitable for complex pattern matching tasks.\n\n## Contributing\n\nContributions to improve the tool or extend its functionality are welcome. Please feel free to submit issues or pull requests on the project's GitHub page.\n\n\n## Acknowledgements\n\nThis project was inspired by the regex matching algorithm described in \"Beautiful Code\" by Brian Kernighan, which was originally based on Rob Pike's implementation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonbyte%2Fgrep-command-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythonbyte%2Fgrep-command-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonbyte%2Fgrep-command-rust/lists"}