Minigrep is a very basic command-line utility that performs text searches in files, similar to the traditional grep tool. It's designed to be straightforward and easy to use for basic text searching needs.
- Search for standard input
- Case-sensitive and case-insensitive search options
To install Minigrep, you can download binaries or follow these steps:
-
Clone the repository:
git clone https://github.com/akoken/minigrep.git cd minigrep
-
Build the project:
cargo build --release
-
The binary will be available in
target/release/minigrep
-
Search for "rust" in a file:
minigrep rust file.txt
-
Case-insensitive search for "RUST" in a file:
minigrep -i RUST file.txt
-
Show line numbers:
minigrep -l memory file.txt
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.