I know that there is an operator similar to the *
, with the difference that it works into all the sub-directories.
Assume you have a folder structure:
.
├── bar
│ ├── foo
│ │ └── baz
│ │ └── hurz
│ │ └── lolz
│ │ └── hello.txt
│ └── poit.txt
└── fnord.txt
Then ls
with single star *
would list:
$ ls *.txt
fnord.txt
I expect the double star operator **
to work on the subfolders, yet it is not complete. I know that this can work as I had this enabled on another machine yet I forgot how.
$ ls **/*.txt
bar/poit.txt
I was expecting the output to look like:
ls **/*.txt
bar/foo/baz/hurz/lolz/hello.txt bar/poit.txt fnord.txt
How is the **
operator called and how do I activate it properly?
find
as follows: …” here as well.