Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 704 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 704 Bytes

Minigrep

I like to learn new languages by re-implementation of tools and commands that I use on a daily basis.

grep is a useful command tool for finding substrings within a string in Unix-like operating systems.

With minigrep we will read a file and return lines which contain specific string (passed as arguments) in that file.

The functionnalities will be developed in TDD.

Run

cargo run -- "j'ai vu" Rimbaud.txt

Or

IGNORE_CASE=1 cargo run -- "j'ai vu" Rimbaud.txt

TODO

  • Read a file
  • Search for specific lines passed as argument
  • Sensitive and insensitive query
  • Allow user to configure sensitivity via environment variable
  • Write errors to `stderr