detect

Crates.iodetect
lib.rsdetect
version0.1.4
sourcesrc
created_at2024-07-09 18:04:42.920929
updated_at2024-08-28 19:40:48.539545
descriptionDetect files on your filesystem using arbitrary expression language criteria
homepage
repository
max_upload_size
id1297366
size68,406
Inanna Malick (inanna-malick)

documentation

README

detect: a command line tool for finding filesystem entities using expressions

➜  detect 'name ~= detect || extension ~= rs && contents ~= map_frame'
./target/release/detect
./target/release/deps/detect-6395eb2c29a3ed5e
./target/debug/detect
./target/debug/deps/detect-34cec1d5ea27ff11
./target/debug/deps/detect-e91a01500af9a97b
./target/debug/deps/detect-0b57d7084445c8b2
./target/debug/deps/detect-32c3beb592fdbbe3
./src/expr/frame.rs

boolean operators

  • a && b

  • a || b

  • !a

  • (a)

string operators

  • ==
  • ~= (regex match)

numeric operators

  • >, >=, <, <=
  • ==

Selectors

All selectors start with '@', eg '@name'

file path selectors

  • name (or filename)
  • path (or filepath)
  • extension (or ext)

metadata selectors

  • size (or filesize)
  • type (or filetype)

file contents predicates

  • contents (or file)
Commit count: 0

cargo fmt