karelok
karelok

Reputation: 311

ClearCase: Query labels with specific attribute value

How can I query all labels that satisfy the list of conditions below?

Upvotes: 1

Views: 134

Answers (1)

VonC
VonC

Reputation: 1323653

Use cleartool lbtype -kind lbtype combined with fmt_ccase.

That is:

cleartool lbtype -kind lbtype -fmt "%n Lock status: %[locked]p %a"

You can the grep the content for what you are looking for

grep -v locked 
grep -v obsolete
grep "My_Attribute=myvalue"

Upvotes: 1

Related Questions