Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to search files by label

Tags:

clearcase

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 ?

like image 560
Haiyuan Zhang Avatar asked Feb 08 '10 09:02

Haiyuan Zhang


People also ask

How do I search a specific folder?

Right-click on a folder. select Search within that folder.

Are there labels in Google Drive?

Google Drive has two kinds of labels: badged and standard. Badged label—helps users apply a prominent indicator to emphasize the most critical metadata. You can create one label with badged options for your organization.


2 Answers

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
like image 130
VonC Avatar answered Sep 20 '22 10:09

VonC


There is also a graphical way to find objects with a certain label called Report Builder (also known in ClearCase Explorer as Report Wizard). In Report Builder you can navigate to Elements/Labels which has the "Elements with Labels" and "Versions with Labels" reports. After the report runs you have the option to save the results as HTML, XML, or CSV.

like image 36
brainimus Avatar answered Sep 21 '22 10:09

brainimus