clearcase:find -name 不允许多种模式?
我想通过 cleartool find
命令查找 *.cs
和 *.cpp
文件。但它失败了。
cleartool find "M:\test_view\code" -name "*.cs *.cpp" -print
即使该文件夹中有匹配的文件,根据上述也找不到任何内容。
如何设置多个文件名模式?
I wanna find *.cs
and *.cpp
files through cleartool find
command. But it failed.
cleartool find "M:\test_view\code" -name "*.cs *.cpp" -print
Nothing can be found based on above even there are matched files in that folder.
How to set multiple file-name patterns ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
查询语言为复合查询提供了一些可能性(
查询||查询
)但是cleartool find 没有这些运算符
-name
选项。您可以按照 cleartool 通配符语法,是
The query language offer some possibility for Compound queries (
query || query
)But the cleartool find has none of those operators for the
-name
option.The best you can do, following the cleartool wildcard syntax, is
这有点晚了,但也许这会对某人有所帮助。
一种选择是将其包装为 for 循环:
This is a bit late but perhaps this will help someone.
One option is to wrap this is a for loop:
看起来cleartool 包装了unix 风格的查找实用程序。
如果这是正确的,你也许可以使用“-or”
It lookslike cleartool wraps the unix style find utility.
If that is right you might be able to use '-or'