Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jeongoon/hgrep

use grep command with printing head line
https://github.com/jeongoon/hgrep

Last synced: 17 days ago
JSON representation

use grep command with printing head line

Awesome Lists containing this project

README

        

* hgrep
run grep command but keep the head line.
** Usage

#+begin_src sh
sh> ps aux | hgrep.fish -C 1 "fish"
# or
sh> ps aux | hgrep.pl -C 1 "fish"
# or
sh> ps aux | hgrep.py -C 1 "fish"

#+end_src
** Blog
[[https://jeongoon.github.io/posts/2022-04-23-grep-with-header.html][find this blog]] for more information.