asg5704 / gremlin

A lightweight grep-like tool to search files

Repository from Github https://github.comasg5704/gremlinRepository from Github https://github.comasg5704/gremlin

👹 Gremlin

A lightweight, grep-like searcher written in Rust that uses a gremlin to finds patterns.

Motivation

  • As a means of learning the Rust programming language

Example

// TODO

Installation

To install gremlin, you can download the binaries here. Remember to put the path to the binary in your PATH.

Usage

$ gremlin -h
gremlin 0.1.0
Alexander Garcia <https://alexandergarcia.me>
A grep-like pattern searcher

USAGE:
    gremlin <pattern> [input]

ARGS:
    <pattern>    Pattern to search for
    <input>      File to search [optional]

OPTIONS:
    -h, --help       Print help information
    -V, --version    Print version information

Search within a file

gremlin <pattern> <input-file>
gremlin Banana test.txt

Search using pipe

... | gremlin <pattern>
cat test.txt | gremlin Banana

About

A lightweight grep-like tool to search files


Languages

Language:Rust 100.0%