I'd like to write something like this:
$ ls **.py
in order to get all .py filenames, recursively walking a directory hierarchy.
Even if there are .py files to find, the shell (bash) gives this output:
ls: cannot access **.py: No such file or directory
Any way to do what I want?
EDIT: I'd like to specify that I'm not interested in the specific case of ls
, but the question is about the glob syntax.