A tine grep-like tool written in Rust for learning purposes.
It searching for a fixed substring in input and prints matching lines to stdout.
Input can come from file or from stdin (pipes / redirects).
- Fixed substring search (
line.contains(pattern)) - Read from :
stdinvia pipe/redirect- a single file path
- Prints matching lines to
stdout
cargo build --releaseBinary would be at:
./target/release/rsgrep
./target/release/rsgrep <file> <pattern>cat file.txt | ./target/release/rsgrep <pattern>Or redirect:
./target/release/rsgrep error < file.txt