Skip to content

CODYJEWELLWEAVER/grepRS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GrepRS

Rust codecov GPLv3 License

DESCRIPTION

An implementation of grep in Rust. This project was inspired by the mini project in "The Rust Book". I decided I wanted to expand on the idea and try to fully write grep using Rust as a way to increase my knowledge of both. All credit for grep goes to Ken Thompson & AT&T Bell Laboratories. This project is licensed under GPLv3 which you can find here.

I have made it a point of emphasis to keep the usage of grepRS identical to the usage of grep so far. My hope is to allow for grepRS to be used without having to learn anything new.

As of right now only unix is fully supported and this project may not be fully functional on macOS or Windows. However, I fully plan to support both in the future.

BASIC USAGE

Basic

greprs [options...] pattern [sources...]

A source is a file or stream such as stdin.

There are no restrictions on where options must be given in the command.

greprs --ignore-case pattern source # valid
greprs pattern source --ignore-case # also valid

If only one non-option argument is given it is interpreted as a pattern and stdin will be used as the source for content to search in.

CONTACT

Found a bug? Hit me up here:

About

Implementation of Grep written in Rust.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages