13

For a Unix/Unix-like OS...

So, I know I can just use find . to list all of the files recursively from the current folder. This includes files I am not interested in.

Using Ack, Ag (silver searcher), or Pt (platinum searcher), is there a way to do the same thing?

I do not want to search inside the files themselves, I just want to list all of the files in my project, without listing the files that these tools ignore for me.

aikeru
  • 253

1 Answers1

21

With both ag and ack you just provide the -l flag.

e.g.

$ ag -l foo
file.js
file2.py