Skip to content

lines

Rustv0.1.0MIT

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

LongShortDescription
--version-VShow version and license
--ignore-case-iCase-insensitive search
--recursive-rSearch directories recursively
--count-cShow match counts per file
--no-color-nDisable 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
Language
Rust
Versionv0.1.0
LicenseMIT
RepositoryGitHub