An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

## fastgrep

![Latest Release](https://img.shields.io/github/v/release/zakcutner/fastgrep)
[![Build Status](https://travis-ci.com/zakcutner/fastgrep.svg?branch=master)](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!