-l --files-with-matches
Only print the names of files containing matches, not the matching lines. An empty query will print all files that would be searched.
but:
/bin/ag -l /home/rlpowell/src
doesn't work because that searches for the string /home/rlpowell/src in the current directory.
So attempting the obvious fix I get:
rlpowell@stodi> /bin/ag -l '' /home/rlpowell/src
ERR: Error: No query. What do you want to search for?
The man page says:
but:
/bin/ag -l /home/rlpowell/src
doesn't work because that searches for the string /home/rlpowell/src in the current directory.
So attempting the obvious fix I get:
rlpowell@stodi> /bin/ag -l '' /home/rlpowell/src ERR: Error: No query. What do you want to search for?