How to search files by label

cleartool find is a good start.

You can execute those anywhere within your (snapshot or dynamic) view

To generate the list of those elements which contain a version with a predetermined label (REL1) attached, use the following syntax of the cleartool find command:

UNIX and Linux:

% cleartool find -all -element '{lbtype_sub(REL1)}' -print

Windows:

cleartool find -all -element "{lbtype_sub(REL1)}" -print

Leave a Comment