Search code examples
findclearcasecleartool

clearcase: find -name not allow multiple patterns?


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 ?


Solution

  • 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

    cleartool find "M:\test_view\code" -name "*.c[sp]*" -print