gron icon indicating copy to clipboard operation
gron copied to clipboard

Enhancement: Add recursive option

Open nhi-vanye opened this issue 5 years ago • 2 comments

I have a deeply nested directory of archived JSON responses that I would like to analyze (extract fields from each of the response files)

find -exec gron would probably work, but the hierarchy holds important context so I'd want to have the file path included in the output.

I'm thinking something like grep -r

nhi-vanye avatar Feb 13 '19 17:02 nhi-vanye

I needed the same thing, but rather than implement grep -r, I did grep -H, so find -exec gron -H gets you the filename. See https://github.com/RossPatterson/gron (or https://github.com/tomnomnom/gron/pull/72)

RossPatterson avatar Jun 29 '20 15:06 RossPatterson

@tomnomnom Can you review my pull request https://github.com/tomnomnom/gron/pull/72 for this feature?

RossPatterson avatar Mar 17 '21 18:03 RossPatterson