Skip to content

3xecut0r/rsgrep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rsgrep

A tine grep-like tool written in Rust for learning purposes.

It searching for a fixed substring in input and prints matching lines to stdout. Input can come from file or from stdin (pipes / redirects).

Features

  • Fixed substring search (line.contains(pattern))
  • Read from :
    • stdin via pipe/redirect
    • a single file path
  • Prints matching lines to stdout

Build

cargo build --release

Binary would be at:

./target/release/rsgrep

Usage

1) Search in a file

./target/release/rsgrep <file> <pattern>

2) Search in stdin (pipe / redirect)

cat file.txt | ./target/release/rsgrep <pattern>

Or redirect:

./target/release/rsgrep error < file.txt

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages