Crates.io | grrs-hardik |
lib.rs | grrs-hardik |
version | 0.1.0 |
created_at | 2025-04-16 06:13:33.036137+00 |
updated_at | 2025-04-16 06:13:33.036137+00 |
description | A tool to search files |
homepage | https://github.com/pythonicforge/grrs |
repository | https://github.com/pythonicforge/grrs |
max_upload_size | |
id | 1636007 |
size | 21,602 |
grrs
is a simple command-line tool to search for a pattern in a file and display the lines that contain it.
Run the program with the following arguments:
pattern
: The pattern to search for in the file.path
: The path to the file to read.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.
This project uses the following dependencies:
If the file cannot be read, the program will display an error message with context about the failure.
This project is licensed under the MIT License.