4 ms·
You can search file names (instead of contents). Add the -g or -G to your -l flags. $ ag -l -g which /usr/bin/ /usr/bin/which /usr/bin/kpsewhich
by aesh2Xa1 5y ago
You can search file names (instead of contents). Add the -g or -G to your -l flags.
$ ag -l -g which /usr/bin/
/usr/bin/which
/usr/bin/kpsewhich
/usr/bin/sgmlwhich
$ ag -l -g /which$ /usr/bin/
/usr/bin/which
- incanus77 5y agoNice! Hadn't noticed that.