Questions tagged «ag»

2
如何使用ag在具有某些扩展名的文件中查找文本?
我正在使用ag(The Silver Searcher)版本0.31.0。我可以使用以下命令轻松地在一堆文件中查找字符串: localhost:workspace davea$ ag 'ftp' . 但是,如果我只想扫描带有某些扩展名的文件怎么办?我尝试了这个: localhost:workspace davea$ ag 'ftp' .java ERR: Error stat()ing: .java ERR: Error opening directory .java: No such file or directory 但出现了您在上面看到的错误。
23 files  search  ag 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.