Sample Header Ad - 728x90

How can I limit the file size of files searched by ag?

1 vote
2 answers
224 views
I don't want [ag](https://github.com/ggreer/the_silver_searcher) to search files larger than 2Mio. I can't find anything like a --file-size flag to the ag command, but is there any way to tell it that? I'm getting lots of
ERR: Skipping foo.bar: pcre_exec() can't handle files larger than 2147483647 bytes.
Asked by Jason Hunter (227 rep)
Oct 21, 2023, 11:18 PM
Last activity: Oct 22, 2023, 09:34 AM