grepp

command
v0.4.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2024 License: ISC Imports: 17 Imported by: 0

README

fgrepp

parallel grep - A grep that searches files in parallel.

Works the same as GNU grep for supported args.

Supported args

Usage of grepp [options] PATTERN [file...]:
  -E	pattern is regex
  -H	file names
  -color WHEN
    	set WHEN to enable colors (always,auto,never) (default "never")
  -include string
    	include glob
  -l	only print filenames on match
  -n	line numbers
  -q	quiet - exit code of 0 signifies match
  -r	recurse into directories
  -s	suppress errors

Benchmark

Command Mean Min Max Relative
rg -u -u -u -L -a -g "*go" main /home/howeyc/src/ 26.2ms ± 900µs 24.3ms 31.8ms 1.00
./fgrepp -r --include "*go" main /home/howeyc/src/ 28.7ms ± 600µs 27.9ms 33.1ms 1.10 ± 0.05
ugrep -r -tgo main /home/howeyc/src/ 29.1ms ± 300µs 28.4ms 30.8ms 1.11 ± 0.04
grep -r --include "*go" main /home/howeyc/src/ 85.9ms ± 1.4ms 83.3ms 92.5ms 3.27 ± 0.13
Command Mean Min Max Relative
rg -u -u -u -L -a Sofie CSVs/ 54.5ms ± 1ms 52.7ms 58.1ms 1.00
ugrep -r -n -H Sofie CSVs/ 74.6ms ± 800µs 73.5ms 78ms 1.37 ± 0.03
./fgrepp -r -n -H Sofie CSVs/ 92.7ms ± 1.4ms 90.9ms 98.6ms 1.70 ± 0.04
grep -r -n -H Sofie CSVs/ 1.648s ± 5.5ms 1.6363s 1.6573s 30.21 ± 0.58

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL