slg

A fast recursive line grep utility.

Search files and directories with regex or literal patterns, list candidate files without searching content, control ignore behavior directly, and tune parallel traversal when the tree is large enough to justify it.

CLI examples
Reference
slg TODO src
slg -F "TODO:" .
slg --files --max-depth 0 src
slg --hidden --no-ignore-vcs "needle" .
slg --jobs auto --stats error .

slg is filesystem-only: roots are files or directories, not stdin or URLs.

Why slg

A grep-first CLI with explicit behavior instead of hidden mode switches.

Predictable inputs

Search mode takes one pattern plus zero or more filesystem roots. File-list mode swaps the pattern for --files. There is no stdin shorthand or URL mode to guess about.

Honest traversal

Hidden files, VCS directories, common heavy directories, per-directory ignore files, symlink following, and depth limits are all surfaced as explicit flags.

Tunable parallelism

Start with --jobs auto, then reach for worker caps, split depth, file-batch jobs, and --parallel-files when you need more control.