findp

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: 12 Imported by: 0

README

findp

parallel find - A simpler find with directories searched in parallel.

  • no -exec
  • no expressions, AND is assumed
  • first arg must be path

Works the same as GNU find for supported args.

Suppored predicates

Usage of findp <path>:
  -iname string
    	case-insensitive filename pattern
  -ipath string
    	case-insensitive path pattern
  -iregex string
    	case-insensitive regular expression
  -maxdepth int
    	max depth (default -1)
  -mindepth int
    	min depth (default -1)
  -mmin string
    	mod time minutes (eg. -10, +5)
  -mtime string
    	mod time days (eg. -1, +30)
  -name string
    	filename pattern
  -path string
    	path pattern
  -print0
    	print with null instead of newline
  -regex string
    	regular expression
  -size string
    	file size (eg. -10M, +40k)
  -type string
    	file type (d or f)

Benchmark

Command Mean Min Max Relative
findp ~/src/ -name "*pric*" -size +1M 21.7ms ± 400µs 20.9ms 24.5ms 1.00
bfs ~/src/ -name "*pric*" -size +1M 34ms ± 800µs 32.8ms 39.2ms 1.57 ± 0.05
fd -u -g "*pric*" --size +1m ~/src/ 34.5ms ± 700µs 32.3ms 36.4ms 1.59 ± 0.05
find ~/src/ -name "*pric*" -size +1M 78.3ms ± 1.1ms 76.9ms 82.8ms 3.60 ± 0.09

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