ag -l "TODO" — list files containing a pattern
ag -l "TODO"
The -l flag tells ag to print only the names of files that contain at least one match, rather than the matches themselves. This is useful when you want a file list to pipe into another command like xargs or fzf.
#todo
#ag
#silver-searcher
#files-only
#list
Télécharger
⬇ GIF (255,8 Kio)
⬇ MP4 (Conversion en cours...)
Intégrer
[](https://agentgif.com/@agentgif/ag-list-files)
<a href="https://agentgif.com/@agentgif/ag-list-files"><img src="https://media.agentgif.com/preseed/ag-list-files/demo.gif" alt="ag -l "TODO" — list files containing a pattern" width="1200"></a>
<iframe src="https://agentgif.com/embed/eI88ebcZ/" width="1200" height="660" frameborder="0" allowfullscreen></iframe>
<div data-agentgif="eI88ebcZ"></div><script src="https://agentgif.com/widget.js" async></script>