How to search files by label

Haiyuan Zhang picture Haiyuan Zhang · Feb 8, 2010 · Viewed 19.2k times · Source

As title, I'd like to list all the files with a given label under a directory. Which clearcase command can help me to do that ?

Answer

VonC picture VonC · Feb 8, 2010

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