echo **

Hi,

The current directory has two files: a, b. echo ** gets the result a b, instead of a b a b. I don't understand this. Can someone give some explanation?

Thanks!

The wildcard * means zero or more characters.
If the first * displays every character (since it is greedy), the second * is irrelevant, since there is nothing else to match.

Now if you want to display twice the same content

echo * *

insert a space between wildcards

Thanks!