perg is a micro command-line tool to search for given string inside a file, written in Rust.
Lightweight alternative for grep
, without highlighting.
```bash ❯ perg --help
perg 0.1.0
USAGE:
perg
FLAGS: -h, --help Prints help information -V, --version Prints version information
ARGS:
Using Cargo via rustup
:
bash
❯ curl https://sh.rustup.rs -sSf | sh
then install perg
binary:
bash
❯ git clone git@github.com:vinhnx/perg.git
❯ cd perg
❯ cargo install --path .
on current repo:
bash
❯ perg v src/main.rs
#[derive(StructOpt)]
#[derive(Debug)]
on a test file, then search for a pattern:
bash
❯ echo "hello world\nhi world\nby world" >> test.txt
❯ cat test.txt
# hello world
# hi world
# by world
❯ perg e test.txt
# hello world
# bye world
Feel free to contact me on Twitter for discussions, news & announcements & other projects. :rocket: