Skip to content

prtpydv/grex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grex

A small grep clone.

Given a string and a path, print only the lines that contain the given string.

Some optimizations:

  • Uses std::io::BufReader to avoid reading the whole file into memory.
  • Uses rust module system
  • Adds error handling to parsing of command line arguments

Installation

To install, run:

cargo install gr3x

Usage:

gr3x <pattern> <path>

Source:

rust-cli.github.io/book/index.html

About

A small grep clone

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages