| Crates.io | sgrep |
| lib.rs | sgrep |
| version | 1.1.0 |
| created_at | 2024-06-26 04:36:18.901908+00 |
| updated_at | 2025-08-20 12:01:15.073153+00 |
| description | A simple grep util for those lazy to remember many command line options |
| homepage | https://thiagocafe.com/ |
| repository | https://github.com/thiagomg/sgrep |
| max_upload_size | |
| id | 1284156 |
| size | 910,131 |
A simple grep util for those lazy to remember many command line options

# 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
Using brew:
brew tap thiagomg/texted
brew install thiagomg/texted/simplegrep
Or using cargo
cargo install sgrep