rfgrep-0.1.0 is not a library.
Visit the last successful build:
rfgrep-0.4.0
rfgrep
A command-line utility for recursively searching and listing files with advanced filtering capabilities. Built in Rust.
Features
-
Advanced Search
- Regex, plain text, and whole-word matching
- Recursive directory traversal
- Binary file detection
- Extension filtering
- Size limits
-
File Listing
- Detailed/simple output formats
- Extension statistics
- Size filtering
- Hidden file handling
-
Utilities
- Clipboard copy support
- Dry-run mode
- Logging to file
- Progress indicators
Installation
From Source
Via Cargo
Usage
Basic Search
Search with Options
File Listing
# Simple list
# Detailed view
# With filters
Command Reference
Global Options
| Option | Description |
|---|---|
--log PATH |
Write logs to specified file |
--path DIR |
Base directory (default: .) |
Search Command
| Option | Description |
|---|---|
--mode MODE |
Search mode: regex/text/word |
--extensions EXT |
Comma-separated file extensions |
--max-size MB |
Skip files larger than specified MB |
--skip-binary |
Skip binary files |
--dry-run |
Preview files without processing |
--copy |
Copy results to clipboard |
List Command
| Option | Description |
|---|---|
--extensions EXT |
Comma-separated file extensions |
--long |
Detailed output format |
--recursive |
Recursive directory traversal |
--show-hidden |
Include hidden files/directories |
--max-size MB |
Skip files larger than specified MB |
--skip-binary |
Skip binary files |
Examples
- Find all Rust files containing "HashMap":
- List all Markdown files under 1MB:
- Search with regex and copy to clipboard:
Performance Tips
- Use
--skip-binaryto avoid unnecessary file checks - Limit scope with
--extensionsand--max-size - For large directories,
--dry-runfirst to preview
Contributing
Contributions are welcome! Please open an issue or PR for any:
- Bug reports
- Feature requests
- Performance improvements