ELGLOB(1) BSD General Commands Manual ELGLOB(1)
elglob — perform globbing on a pattern, then execute another program
elglob [−v] [−w] [−s] [−m] [−e] [−0] variable pattern prog...
elglob performs globbing on pattern.
It then performs variable substitution (
cf. execline-substitute(7) ) on prog..., using variable as key and the result of the globbing as value. The value is always split: it contains as many words as they are matches for the globbing pattern.
elglob then exec(3)s into the modified prog....
Verbose. If there is a problem while globbing, print a warning message on stderr.
Strict. If there is a problem while globbing, die immediately. This is harsh - you probably don’t need that option.
Sort the matches. By default, the results are left unsorted.
Mark. Append a slash to each word that corresponds to a directory.
No escape. Treat backslashes in pattern literally; do not allow quoting of metacharacters in pattern via backslashes. Warning: the execlineb(1) launcher uses the backslash as their own escape character - if you want a backslash to be passed to elglob, do not forget to double it.
Null globbing. By default, if pattern matches nothing, it will be substituted as is (verbatim in one word). With this option, if pattern matches nothing, it will be properly substituted as zero word.
define(1), elgetpositionals(1), execlineb(1), importas(1), multidefine(1), multisubstitute(1), execline-substitute(7)
This man page is ported from the authoritative documentation at: https://skarnet.org/software/execline/elglob.html
[email protected] > (man page port)
BSD February 14, 2021 BSD