sgrep

Crates.iosgrep
lib.rssgrep
version
sourcesrc
created_at2024-06-26 04:36:18.901908
updated_at2024-12-02 01:34:59.989084
descriptionA simple grep util for those lazy to remember many command line options
homepagehttps://gitlab.com/thiagomg/sgrep
repositoryhttps://gitlab.com/thiagomg/sgrep
max_upload_size
id1284156
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Thiago Massari Guedes (thiagomg)

documentation

README

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
Commit count: 16

cargo fmt