9 stable releases

Uses new Rust 2024

1.1.0 Aug 20, 2025
1.0.11 May 28, 2025
1.0.7 Apr 22, 2025
1.0.5 Dec 2, 2024
0.1.0 Jun 26, 2024

#1037 in Command line utilities

Download history 1/week @ 2025-07-24 76/week @ 2025-08-14 94/week @ 2025-08-21 11/week @ 2025-08-28 15/week @ 2025-09-04 5/week @ 2025-09-25 6/week @ 2025-10-02

689 downloads per month

Apache-2.0

1MB
436 lines

Simple Grep (sgrep)

A simple grep util for those lazy to remember many command line options

Usage

# Displays lines containing "pub struct" string in all .rs files in the local directory
sgrep -p "pub struct" *.rs

# Displays lines containing "#ifdef" or "#ifndef" in all *.c* and *.h* files
sgrep -p "#ifdef" -p "#ifndef" -f .c -f .h

# Display the top 1 line and filter for bash, case insensitive
ps -ef | sgrep -t 1 -i -p bash

Installing

Using brew:

brew tap thiagomg/texted
brew install thiagomg/texted/simplegrep

Or using cargo

cargo install sgrep

Dependencies

~1–11MB
~80K SLoC