https://github.com/zakcutner/fastgrep
:rocket: Grep, but FAST! Uses multi-threading to grep very large files
https://github.com/zakcutner/fastgrep
fast grep multithreading rust streaming
Last synced: 4 months ago
JSON representation
:rocket: Grep, but FAST! Uses multi-threading to grep very large files
- Host: GitHub
- URL: https://github.com/zakcutner/fastgrep
- Owner: zakcutner
- Created: 2019-01-22T14:04:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-06T21:27:27.000Z (about 4 years ago)
- Last Synced: 2024-04-17T16:17:42.596Z (about 2 years ago)
- Topics: fast, grep, multithreading, rust, streaming
- Language: Rust
- Homepage:
- Size: 22.5 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## fastgrep

[](https://travis-ci.com/zakcutner/fastgrep)
**:rocket: Grep, but _FAST_! Uses multi-threading to grep very large files**
### Installation
1. Run `cargo build --release` to build the binary.
2. Execute binary at `./target/release/fastgrep`.
3. Add to your `PATH` by running `cp target/release/fastgrep /usr/local/bin/`.
### Usage
```
fastgrep 0.3.1
Zak Cutner (https://zakcutner.uk)
Grep, but FAST! Uses multi-threading to grep very large files
USAGE:
fastgrep [FLAGS] [OPTIONS] --jobs --size
FLAGS:
-h, --help Prints help information
-r, --regex Enables regular expression patterns
-V, --version Prints version information
OPTIONS:
-c, --colour= Sets when the output should be coloured, can be `auto', `always' or `never'
-j, --jobs Sets number of jobs to run in parallel, must be at least one
-s, --size Sets number of lines to include in each job, must be at least one
ARGS:
Pattern to grep for within the given input
```
### Appendix
- Requires Rust to be installed, can be obtained from [here](https://www.rust-lang.org/).
- Greater job sizes will result in more lines being loaded into memory at once.
- Please open an issue for any questions!