Find Duplicates

krep – optimized string search utility

krep is an optimized string search utility designed for maximum throughput and efficiency when processing large files and directories. It is built with performance in mind, offering multiple search algorithms and SIMD acceleration when available.

krep is not intended to be a full replacement or direct competitor to feature-rich tools like grep or ripgrep. Instead, it aims to be a minimal, efficient, and pragmatic tool focused on speed and simplicity.

krep provides the essential features needed for fast searching, without the extensive options and complexity of more comprehensive search utilities. Its design philosophy is to deliver the fastest possible search for the most common use cases, with a clean and minimal interface.

This is free and open source software.

Features include:

  • Multiple search algorithms: Boyer-Moore-Horspool, KMP, Aho-Corasick for optimal performance across different pattern types.
  • Algorithm selection: Automatic smart selection with optional –algo override for fine-tuning.
    SIMD acceleration: Uses SSE4.2, AVX2, or NEON instructions when available for blazing-fast searches.
  • Memory-mapped I/O: Maximizes throughput when processing large files.
  • Multi-threaded search: Automatically parallelizes searches across available CPU cores.
  • Regex support: POSIX Extended Regular Expression searching.
  • Multiple pattern search: Efficiently search for multiple patterns simultaneously using Aho-Corasick.
  • Recursive directory search: Skip binary files and common non-code directories.
  • Gitignore support: Respect .gitignore files during recursive search with –gitignore.
  • Stdin pattern input: Read patterns from stdin with -f – for seamless pipeline integration.
  • Colored output: Highlights matches for better readability.
  • UI/UX refresh: New terminal color palette, clearer -o line index styling, and a redesigned help screen.
  • Specialized algorithms: Optimized handling for single-character and short patterns.
  • Match Limiting: Stop searching a file after a specific number of matching lines are found.

Website: github.com/davidesantangelo/krep
Support:
Developer: Davide Santangelo
License: BSD 2-Clause “Simplified” License

krep options

krep is written in C. Learn C with our recommended free books and free tutorials.

Alternatives to grep


Explore Linux

Best Free and Open Source Software - A huge collection of recommended free and open source software covering every major category.
In-depth Linux Software Reviews - Detailed assessments of Linux software covering features, usability and overall quality.

The Big List of Active Linux Distros - An extensive collection of actively developed Linux distributions.
Open Source Alternatives - Alternatives to software and services from Google, Microsoft, Apple, Adobe, IBM, Autodesk, Oracle and others.
Essential Linux System Tools - Indispensable utilities for monitoring, maintaining and managing Linux systems.
Linux Productivity Tools - Useful utilities for improving productivity and streamlining everyday tasks.
Alternatives to Popular CLI Tools - Modern alternatives to familiar command-line utilities supplied with Linux systems.
Awesome Free Linux Game Tools - Tools, utilities and companion software that improve gaming on Linux.
Machine Learning on Linux - Machine learning and deep learning software, self-hosted applications and practical tools.
Saving Money with Linux - Practical ways to reduce electricity consumption and lower computing costs with Linux.
Linux Candy - Fun, entertaining and sometimes delightfully quirky software from the lighter side of Linux.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted