Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

globstar option to make ** recursively match nested directories. #171

Open
shanewilson opened this issue Feb 17, 2020 · 0 comments
Open

Comments

@shanewilson
Copy link

Hi - I was wondering if there were any plans to add support for globstar for nested directories?

Right now I can fake it by splitting the pattern on ** and mixing and matching pathname:true/false but it would be nice to have this built in.

https://www.codeprocess.io/recursively-walk-a-directory-hierarchy-with-bash-globstar/

https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html

The special pattern characters have the following meanings:

*
Matches any string, including the null string. When the globstar shell option is enabled, and '*' is used in a filename expansion context, two adjacent '*'s used as a single pattern will match all files and zero or more directories and subdirectories. If followed by a '/', two adjacent '*'s will match only directories and subdirectories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant