Mwnci glob() Function

Syntax

glob(pattern)

Description

Glob returns an array of the names of all files matching pattern or NULL if there is no matching file.

Example

a=glob("/bin/ls*")
println(a)


[/bin/ls, /bin/lsattr, /bin/lsb_release, /bin/lsblk, /bin/lscpu, /bin/lsfd, /bin/lsinitramfs, /bin/lsipc, /bin/lsirq, /bin/lslocks, /bin/lslogins, /bin/lsmem, /bin/lsmod, /bin/lsns, /bin/lsof, /bin/lspci, /bin/lspgpot, /bin/lsusb]