/rustg

Simple grep utility in Rust.

Primary LanguageRust

Rustg

Rustg is a simple grep utility written in Rust.

Installation

Install Rust.

Compile

rustc rustg.rs

Perform grep

Example:

1. Target file

rustg line example.txt

2. Multiple target files

rustg line example.txt example1.txt

3. Pipe

ls | rustg {target text}