Bash/ls globbing patterns, wildcards
I've encountered a few different glob patterns and I'm not sure exactly what they do:
app/js/**/*.js Is that the same as this? app/js/*/*.js |
They give me the same results when I test them. What was the context where you saw the first one?
|
Using ** instead of * means that you want to have recursive globbing from that directory level on.
For example Code:
tobi ~/test ☺ $ tree This makes it easier to launch commands on files in unknown places without having to use the find command, but it is limited by the maximum length of the commandline your shell allows (which is usually pretty high). |
Quote:
|
All times are GMT -5. The time now is 05:10 PM. |