| Crates.io | finders |
| lib.rs | finders |
| version | 2.1.0 |
| created_at | 2025-04-09 09:36:07.966381+00 |
| updated_at | 2025-10-28 06:18:24.43811+00 |
| description | A tool to shortcut the find command |
| homepage | |
| repository | https://github.com/ydkadri/finders |
| max_upload_size | |
| id | 1626466 |
| size | 44,415 |
A tool to replace the complex bash find logic which searches for files (optionally) containing some string or regular expression pattern.
Finding files containing some string is a common use case in the shell, however the command is cumbersome:
# Bash command
find <dir> \
-type f \
-name <file pattern> \
-exec grep -iH <search pattern> {} \;
Instead, finders provides a lightweight wrapper for this common command.
FindeRS can be found on crates.io and as such can be installed with
cargo install finders
Usage: finder [OPTIONS] [PATH]
Arguments:
[PATH] Optional path to operate on, defaults to CWD
Options:
-f, --file-pattern <FILE_PATTERN> File pattern to filter results
-s, --search-pattern <SEARCH_PATTERN> Search pattern to match in result files
-r, --regex-pattern <REGEX_PATTERN> Regex pattern to match in result files
-i, --case-insensitive Flag for case insensitive search
-v, --verbose Verbose output details unreadable files
-h, --help Print help
-V, --version Print version
FindeRS is designed for performance with:
Benchmarks are run automatically on every pull request and merge to main. View the latest benchmark results in the Actions tab.
Key benchmark categories:
To run benchmarks locally:
cargo bench
To run tests:
cargo test
To check code quality:
cargo fmt --all -- --check
cargo clippy -- -D warnings
Contributions are welcome! Please feel free to submit a Pull Request.
Releases are automated through GitHub Actions:
git tag v2.0.3 && git push origin v2.0.3