Globbing Patterns
"?" matches a single character
"*" matches any number of characters within name
"**" matches any number of characters across all directories
Globbing examples
CommandBox> rm temp*.txt
CommandBox> cp *.cfm backup/
CommandBox> touch build/*.properties// Match any file or folder starting with "foo"
foo*
// Match any file or folder starting with "foo" and ending with .txt
foo*.txt
// Match any file or folder ending with "foo"
*foo
// Match a/b/z but not a/b/c/z
a/*/z
// Match a/z and a/b/z and a/b/c/z
a/**/z
// Matches hat but not ham or h/t
/h?tLast updated
Was this helpful?