[英]Select all files with glob, except for specific file
I'm trying to match a glob that's all .exe
's in a nested folder, but skip over UnityCrashHandler32.exe
/ UnityCrashHandler64.exe
explicitly.我正在尝试匹配嵌套文件夹中所有
.exe
的全局,但明确跳过UnityCrashHandler32.exe
/ UnityCrashHandler64.exe
。
I've been playing around with some combination of .(UnityCrashHandler32\.exe|UnityCrashHandler64\.exe)
but it's not lining up correctly!我一直在玩一些
.(UnityCrashHandler32\.exe|UnityCrashHandler64\.exe)
的组合,但它没有正确排列! Can't quite see what I'm missing看不出我错过了什么
Thanks so much, Ollie非常感谢,奥利
Current Glob:当前全球:
foo/{*/*,*}.exe
What I'd like it to do:我想要它做什么:
❌ foo/test.png
✅ foo/thing.exe
✅ foo/thing/thing.exe
❌ foo/UnityCrashHandler64.exe
❌ foo/UnityCrashHandler32.exe
❌ foo/thing/UnityCrashHandler64.exe
❌ foo/thing/UnityCrashHandler32.exe
https://www.digitalocean.com/community/tools/glob?comments=true&glob=foo%2F%7B%2A%2F%2A%2C%2A%7D.exe&matches=false&tests=foo%2Ftest.png&tests=foo%2Fthing.exe&tests=foo%2Fthing%2Fthing.exe&tests=foo%2FUnityCrashHandler64.exe&tests=foo%2FUnityCrashHandler32.exe&tests=foo%2Fthing%2FUnityCrashHandler64.exe&tests=foo%2Fthing%2FUnityCrashHandler32.exe https://www.digitalocean.com/community/tools/glob?comments=true&glob=foo%2F%7B%2A%2F%2A%2C%2A%7D.exe&matches=false&tests=foo%2Ftest.png&tests=foo% 2Fthing.exe&tests=foo%2Fthing%2Fthing.exe&tests=foo%2FUnityCrashHandler64.exe&tests=foo%2FUnityCrashHandler32.exe&tests=foo%2Fthing%2FUnityCrashHandler64.exe&tests=foo%2Fthing%2FUnityCrashHandler32.exe
Like this maybe?也许像这样?
foo/**/@(!(UnityCrashHandler[0-9][0-9])).exe
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.