grrs-hardik

Crates.iogrrs-hardik
lib.rsgrrs-hardik
version0.1.0
created_at2025-04-16 06:13:33.036137+00
updated_at2025-04-16 06:13:33.036137+00
descriptionA tool to search files
homepagehttps://github.com/pythonicforge/grrs
repositoryhttps://github.com/pythonicforge/grrs
max_upload_size
id1636007
size21,602
Hardik (pythonicforge)

documentation

README

grrs

grrs is a simple command-line tool to search for a pattern in a file and display the lines that contain it.


Usage

Run the program with the following arguments:

  • pattern: The pattern to search for in the file.
  • path: The path to the file to read.

Example

cargo run -- "search_pattern" /path/to/file.txt

This will search for the search_pattern in the specified file and print all lines containing the pattern.

Dependencies

This project uses the following dependencies:

  • anyhow: For error handling.
  • clap: For command-line argument parsing.

Error Handling

If the file cannot be read, the program will display an error message with context about the failure.


License

This project is licensed under the MIT License.

Commit count: 15

cargo fmt