sgrep

tool to search a file for structured pattern

Install

All systems
curl cmd.cat/sgrep.sh
Debian Debian
apt-get install sgrep
Ubuntu
apt-get install sgrep
image/svg+xml Kali Linux
apt-get install sgrep
Windows (WSL2)
sudo apt-get update sudo apt-get install sgrep
OS X
brew install sgrep
Raspbian
apt-get install sgrep

sgrep

tool to search a file for structured pattern

A tool for searching text files and filtering text streams for structured criteria. Sgrep implements a query language based on so called region expressions. Like grep, sgrep can be used for any kind of text files. However it is most useful for text files containing some kind of structured text. A file containing structured text could be defined as a file, which obeys some syntax. Examples of structured text files are SGML, HTML, C, TeX and mail files.