Skip to content

UyCode/mgrep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minigrep for search contents in file

A simple command line tool for searching for a string in a file

inspired by rust book and rust course

Usage

for development and testing usage

$ cargo run -- [OPTIONS] <search> <file>

for release and installed usage

$ mgrep [OPTIONS] <search> <file>

Options

  • -i : ignore case distinctions
  • -c : print word count in file (exclude dots and commas)
  • -h : print help message

Examples

$ mgrep "hello world" README.md
$ mgrep -i "hello world" README.md
$ mgrep -c  README.md

About

minigrep for search contents in file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages