DEV Community

Thiago Massari Guedes
Thiago Massari Guedes

Posted on

2 1 1

sgrep 1.0 released

Have you ever wanted to see the top line when running:

❯ ps -ef | grep bash
  501 56821 56820   0 17Nov24 ttys000    0:00.27 /opt/homebrew/bin/bash -l
  501 95638 56821   0  8:19pm ttys000    0:00.00 grep bash
  501 76214 56820   0 Mon09am ttys002    0:00.44 /opt/homebrew/bin/bash -l
  501 82952 56820   0  7:03pm ttys003    0:00.23 /opt/homebrew/bin/bash -l
Enter fullscreen mode Exit fullscreen mode

You can with sgrep

❯ ps -ef | sgrep -t 1 -p bash
0:   UID   PID  PPID   C STIME   TTY           TIME CMD
642:   501 56821 56820   0 17Nov24 ttys000    0:00.27 /opt/homebrew/bin/bash -l
644:   501 95648 56821   0  8:19pm ttys000    0:00.00 sgrep -t 1 -p bash
645:   501 76214 56820   0 Mon09am ttys002    0:00.44 /opt/homebrew/bin/bash -l
646:   501 82952 56820   0  7:03pm ttys003    0:00.23 /opt/homebrew/bin/bash -l
Enter fullscreen mode Exit fullscreen mode

The main idea of sgrep is to have simple command line options, simple to use.

Installing

Using brew:

brew tap thiagomg/texted
brew install thiagomg/texted/simplegrep
Enter fullscreen mode Exit fullscreen mode

Or using cargo

cargo install sgrep
Enter fullscreen mode Exit fullscreen mode

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay