adeshinaO / minigrep

simple Rust I/O project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minigrep

Project from chapter 12 of The Rust Programming Language

A command line tool that searches a specified file for a specified string and prints all the lines containing the string. Searches are case sensitive and error messages are printed to the standard error console stream.


The easiest way to try this out is by using the sample file test.txt which is at the project root.

cargo run test.txt today
cargo run <path-to-file> <string-to-search-for>

To run all automated tests...

cargo test -- --nocapture

About

simple Rust I/O project


Languages

Language:Rust 100.0%