logoalt Hacker News

gary_0today at 7:25 AM1 replyview on HN

Thanks for sharing. Just curious, is there any way to perform globbing over a list of path-like strings instead of only directly on the filesystem?


Replies

jzwincktoday at 10:09 AM

In case someone doesn't know, the standard function for that is called fnmatch:

https://man7.org/linux/man-pages/man3/fnmatch.3.html