summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorWilson McCoubrey <wilson@mccoubreys.co.uk>2017-03-21 13:45:39 +0000
committerGitHub <noreply@github.com>2017-03-21 13:45:39 +0000
commitfd5c5765ddc68fae283cb6284efedf2011cc8a0e (patch)
tree66d64e0a011936c34f6a7e8e3bc1d8b20d8727fb /README.markdown
parent9a6a33e3c9bef05dc6d5b02dddafcb82bead2271 (diff)
parent6092ede8d86746038df4a367191d232003652c55 (diff)
Merge pull request #718 from sspreitzer/master_glob
Add glob function
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown
index 03daae9..eee46e0 100644
--- a/README.markdown
+++ b/README.markdown
@@ -665,6 +665,17 @@ This is useful if the namespace itself is stored in a string:
*Type*: rvalue.
+#### `glob`
+
+Dir#glob wrapper that accepts a string or an array of strings of path patterns.
+Returns an array of strings of matched paths.
+
+ ~~~
+ $confs = glob(['/etc/**/*.conf', '/opt/**/*.conf'])
+ ~~~
+
+*Type*: rvalue.
+
#### `grep`
Searches through an array and returns any elements that match the provided regular expression. For example, `grep(['aaa','bbb','ccc','aaaddd'], 'aaa')` returns ['aaa','aaaddd']. *Type*: rvalue.