Skip to content

minigrep is a cut-down version of the Linux 'grep' tool written in Rust for fun

Notifications You must be signed in to change notification settings

macano953/minigrep_macano953

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minigrep

Build status Crates.io Documentation

Installation

Ensure Rust is installed.

Clone the repo:

git clone https://github.com/macano953/minigrep_macano953

cd into the cloned directory and run:

cargo install --path .

NOTE: This will install the binary in $HOME/.cargo/bin by default

Usage

minigrep takes two arguments: a query (the text to search) and the filename in which to look for the query. If the file contains the query provided, minigrep will print out the entire matching line.

Example:

minigrep "some text to search" some-file.txt

By default, the search text will be case sensitive. To enable case insensitive search, set the CASE_INSENSITIVE environment variable. Example:

CASE_INSENSITIVE=1 minigrep "TO" poem.txt

About

minigrep is a cut-down version of the Linux 'grep' tool written in Rust for fun

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages