Unix wildcard selectors? (Asterisks)

Viewed 8340

In Ryan Bates' Railscast about git, his .gitignore file contains the following line:

tmp/**/*

What is the purpose of using the double asterisks followed by an asterisk as such: **/*? Would using simply tmp/* instead of tmp/**/* not achieve the exact same result?

Googling the issue, I found an unclear IBM article about it, and I was wondering if someone could clarify the issue.

3 Answers
Related