Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 777 Bytes

README.md

File metadata and controls

26 lines (21 loc) · 777 Bytes

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.