alecdesjardins / grrs

Rust Terminal File Parsing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grss, the Rusty grep

Description

grss is a simple parser for text files, written in Rust. It leverages the clap crate for efficient command line argument parsing.

Usage

grss can be utilized to parse single files in various ways, providing flexibility in handling text files. The tool accepts the following command line arguments:

USAGE:
    grrs --pattern <PATTERN>... <PATH>

Examples

# Search for a pattern in a file and print the lines that contain it
$ grrs -p foo test.txt
$ grrs --pattern foo test.txt

Testing

The tool can be tested by running the following command:

$ cargo test

It will run all integrations tests in the tests directory and unit tests found in the src directory.

About

Rust Terminal File Parsing


Languages

Language:Rust 100.0%