A fast file search tool that finds regex matches across files and directories. Supports recursive directory traversal with automatic hidden file/directory skipping. Colour-coded output highlights matches in red, file paths in magenta, and line numbers in yellow. Can search single files or entire directory trees. Lightweight alternative to grep with sensible defaults.
SearchFilesystemRegexCLI
Features
- Regex pattern search with case-insensitive mode (-i)
- Recursive directory traversal with hidden file skipping (-r)
- Match count mode per file (-c)
- Colour-coded output with match highlighting
- Single file or full directory search
Flags
| Long | Short | Description |
|---|---|---|
| --version | -V | Show version and license |
| --ignore-case | -i | Case-insensitive search |
| --recursive | -r | Search directories recursively |
| --count | -c | Show match counts per file |
| --no-color | -n | Disable coloured output |
Usage
terminal
$ lines 'error' app.log
$
$ lines -i 'fn main' src/
$
$ lines -r 'TODO' .
$
$ lines -c 'use' src/
Dependencies
regex crate for pattern matching — single Rust binary, no runtime needed
Install
$ curl -LO https://labs.stech-sol.com/downloads/lines/0.1.0/lines_linux_amd64
$ chmod +x lines_linux_amd64
$ sudo mv lines_linux_amd64 /usr/local/bin/lines
About
Downloads
Verify integrity
SHA256 checksums