grss is a simple parser for text files, written in Rust. It leverages the clap crate for efficient command line argument parsing.
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>
# Search for a pattern in a file and print the lines that contain it
$ grrs -p foo test.txt
$ grrs --pattern foo test.txt
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.