I'm experiencing issue with the double star associated to grep. I'm using ubuntu 16.04.
In my understanding (and after a lot of research): grep 'a' **/* should find any occurence of 'a' in all files in my directory and all sub-directories (reccursively).
However, it doesn't work like that in my system. Here's a test: My file directory .a (file containing an "a") ba/a (file containing "in ba") ba/ca/a (file containing "in ca in ba")
grep 'a' *
a:a
ba is a directory
grep 'a' **/*
ba/a:in ba
grep: ba/ca: is a directory
The first case is obvious, but I was expecting from the second case to see the three files...
What is the explanation behind that?
Thanks, Bob