DEV Community

Thiago Massari Guedes
Thiago Massari Guedes

Posted on

2 2 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

Monitoring as code

With Checkly, you can use Playwright tests and Javascript to monitor end-to-end scenarios in your NextJS, Astro, Remix, or other application.

Get started now!

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

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay