简体   繁体   English

Select 所有带 glob 的文件,特定文件除外

[英]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.

相关问题 正则表达式选择所有句子 除了一个特定单词的句子 - Regular Expression to select all sentences Except one sentence with specific word 正则表达式选择除具有特定前缀的所有.c文件 - Regex to select all .c files except ones with a certain prefix 包括所有指定的扩展名,但带有扩展名的特定文件除外 - Including all specified extensions except a specific file with the extension 正则表达式:匹配html文件中的所有下标,除了特定的下标 - regex: match all subscripts in an html file except a specific one 正则表达式:选择并删除文件的所有内容,“DATE”格式除外 - Regex: Select and Delete all content of file, except “DATE” format 删除所有本地javascript文件,但php中的外部javascript文件除外 - remove all local javascript file except external javascript files in php 匹配除特定组之外的所有内容 - Match all except specific group 列出所有需要/导入特定文件的文件 - Listing all files that require/import a specific file pyspark使用s3中的regex / glob选择文件子集 - pyspark select subset of files using regex/glob from s3 如何用正则表达式选择除特定字符之前的最后两个以外的所有多个空格? - How to select all multiple spaces except last two before a specific character with a Regex?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM