find is missing a -name command to find files by their file name.
@bugaevc
Ah, yes, finding files by name would be cool. @alimpfard, how does one go about matching globs against file names, does the shell have an utility for this or something?
globs are available as StringUtils::matches()
the Shell can expand globs given a base path and a pattern with Shell::expand_globs(StringView path, StringView base) (this is static).
oh, did you mean that as a builtin? no, there's no dynamic glob resolution yet, I've had that on my wishlist though a "glob" builtin would be cool
Oh right, how could I forget about ::matches! Thanks, I'll submit an implementation soon then
Most helpful comment
Oh right, how could I forget about
::matches! Thanks, I'll submit an implementation soon then