This is a command-line tool implemented in Rust for searching text files for a specific string or regular expression pattern, similar to the Unix command grep.
- To grep the contents of a file:
cargo run -- <query> <file_path>
- To grep the stdout of a command:
cargo run -- <command> <query>