Crates.io | trotline |
lib.rs | trotline |
version | 1.1.1 |
source | src |
created_at | 2020-02-25 21:20:06.146841 |
updated_at | 2020-02-29 20:55:33.53915 |
description | A worse version of grep written as practice in concurrency and file IO. |
homepage | |
repository | https://github.com/SuedeGently/trotline |
max_upload_size | |
id | 212537 |
size | 18,814 |
This is just a project I'm using to learn concurrency and file IO in Rust; it isn't fit for any real-world use. If you're looking for a genuinely very useful grep alternative, try ripgrep, a genuinely very impressive and generally faster search tool also written in Rust.
Trotline creates a new thread for every file being searched then uses regex to identify and print to stdout every line containing the desired pattern. All binary files are ignored.
To install, ensure you have the requirements listed below, then run:
cargo install --git "https://github.com/SuedeGently/trotline.git"
then trotline --version
to check its installed correctly.
trotline [FLAGS] <pattern> [directory]
FLAGS:
-h, --help Prints help information
-i, --ignore_case ignore case
-V, --version Prints version information
ARGS:
<pattern> regex search pattern
<directory> target directory
Where pattern
can be any valid regex string. If no directory is specified, the current working directory will be used instead.