Sample Header Ad - 728x90

how to issue a `start of string` pattern for ag

3 votes
2 answers
1197 views
I want to find every file in from the current dir and downwards whose filename starts with foo using __[ag](https://github.com/ggreer/the_silver_searcher)__(the silver searcher). I have tried: ag -g '^foo' ag -g '\^foo' ag -g '\Afoo' no luck. But it should work as ag implements PCRE syntax, right? What am I missing here?
Asked by ninrod (389 rep)
Aug 11, 2016, 08:35 PM
Last activity: Feb 2, 2018, 02:11 PM