You can first try looking for elements instead (with the lbtype_sub
query primitive):
cleartool find . -ele "!lbtype_sub(MYLABEL)" -print
See "Additional examples of the cleartool find command"
About *_sub
query primitives
When using the ClearCase find command in what circumstances should the *_sub query primitives (attype_sub, label_sub and attr_sub) be used instead of just lbtype or attype?
When the type being queried does not apply to the "level" (-element -branch -version
) being queried.
For example, query for a label using -element
: labels are only on versions within elements
(you can limit to files only with -type f
, or folders only with with -type -d
)
If that does not work would recommend a three steps process.
- find all the elements (file or folder) that have one version with that label
- find all the elements
- remove the first elements from the second list
The end result is what you are looking for.