Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meg + gf = megf enhancement #53

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

meg + gf = megf enhancement #53

wants to merge 2 commits into from

Conversation

jthack
Copy link

@jthack jthack commented Oct 2, 2019

I added a switch which will allow meg to only save the file if the gf expressions finds a hit. This is really useful if you're looking for a specific thing across a very large data set. Or if you're looking for something in the index or js files of many sites. It removes almost all false positives.

flag:
-g

example:
put this xml.json in ~/.gf:

{
    "flags": "-Hnri",
    "pattern": "xml version"
}

and then run:
meg -s 200 -g xml /web.config

It won't save off all those fake 200s.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant