Wednesday, 16 September 2015

Bash: shopt -s globstar

Cited from The Shopt Builtin

shopt: change shell optional behaviour.

-s set the specified option.
-u disable the specified option.

option:

globstar

"If set, the pattern ‘**’ used in a filename expansion context will match all files and zero or more directories and subdirectories. If the pattern is followed by a ‘/’, only directories and subdirectories match."



No comments:

Post a Comment