A glob is a short expression that lets you select a bunch of files. 99% of the time, there’s an asterisk involved.
Here’s a (non exhaustive) list of the most useful patterns.
Depends of your glob engine, it could support more or less complex expressions. The follow list is tested using zsh.
test folder$ ls test/*
test folder$ ls test/*/*
test folder$ ls test/**/*
.json in every folder at any level below the test folder$ ls test/**/*.json
.json or .js in every folder at any level below the test folderls test/**/*.(json|js)
Written by Kiko Beats
Kiko Beats
Web is the Platform. Programmer, Computer Science & Software Engineer.