Skip to content

AlexJuca/grepru

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grepru

This is a clone of the popular grep linux command written in rust.

Rust

Description

grepru searches for PATTERNS in each FILE. grepru is used in a shell command.

Current supported functionality:

Search for string in file

grepru "if the lady" file.txt

Print version

grepru --version || grepru --V

Print only a count of selected lines per FILE

grepru "hello" file.txt -c

Prefix each line of output with the 1-based line number within its input file.

grepru "hello" file.txt -n

License

The library is available as open source under the terms of the MIT License.