Skip to content

pierrelandry/minigrep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages