tomnomnom/gf

Feature request: support for -A and -B grep flags

Opened this issue · 2 comments

I am by no means a go developer or I would submit a pull request / prototype for this request.

It would be nice to have a way to pass -A# or -B# in the gf binary and/or encoding a field in the .json object.

Main use case is making the search more visibly identifiable, i.e. adjacent headers or other multi-line entries that might be relevant or helpful in recon.

@kmjones1979 it's already supported, you just need to wrap your grep arguments in quotes like: gf -save csharp_deserial '-HnriEC 5' 'serial.*GetType()'