Automatic backups, patching, replication, and failover. Focus on your app, not your database.
Cloud SQL handles your database ops end to end, so you can focus on your app.
Start Free
Earn up to 16% annual interest with Nexo.
Let your crypto work for you
Put idle assets to work with competitive interest rates, borrow without selling, and trade with precision. All in one platform.
Geographic restrictions, eligibility, and terms apply.
...It is similar to the well-known Unix utility, grep.
As a natural extension to the single-line regular expressions, mgrep is also capable of searching for multiline patterns.
mgrep is not a grep replacement, but it is intended to be grep-compatible: implemented options and behavior should be the same as those of grep.
mgrep is written in C++ using the Boost.Regex library.
A configure/make system is provided for Linux, but its source code should compile on all platforms that have the std and Boost.Regex libraries installed.
...The usage of greps is same as you would use grep, and all options that are available with grep can be used in the same way also with greps.
Basically what greps does is allowing you to choose also the patterns or extentions of relevant files. Then it executes find for finding such files, and executes grep on those files (find | xargs grep).
cgrep provides many of the features of grep, egrep, and fgrep with greatly enhanced performance along with many additional features, one of which is the ability to output the context (surrounding lines) of the matching lines.