#demo #search #grrs

app grrs-hardik

A tool to search files

1 unstable release

Uses old Rust 2015

new 0.1.0 Apr 16, 2025

#2027 in Command line utilities

MIT/Apache

8KB

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.

Dependencies

~1.2–1.8MB
~32K SLoC