grep-rust-simple

Crates.iogrep-rust-simple
lib.rsgrep-rust-simple
version0.1.0
created_at2025-10-05 19:19:59.523148+00
updated_at2025-10-05 19:19:59.523148+00
descriptionA simple grep implementation in Rust
homepage
repositoryhttps://github.com/arjav0703/grep-rust
max_upload_size
id1869341
size9,362
Arjav Jain (arjav0703)

documentation

README

Grep

This project is a simple implementation of the grep command in Rust. It allows you to search for a specific pattern in a file and print the lines that contain the pattern.

Usage

  1. Make sure you have Rust installed on your machine. If you don't have it yet, you can install it from here.

  2. Clone the repository:

git clone https://github.com/arjav0703/grep-rust.git
  1. Navigate to the project directory:
cd grep-rust
  1. To use the program, run the following command:
cargo run -- -E "pattern" filename

Features:

  • Prints lines that match the given pattern.
  • Support advanced regex patterns like \d, \w, etc.
Commit count: 0

cargo fmt