ClearCase:查询具有特定属性值的标签
ClearCase: Query labels with specific attribute value
如何查询所有满足以下条件的标签?
- 标签不是
locked
或 obsolete
- 标签有一个属性
My_Attribute
包含值 myvalue
使用cleartool lbtype -kind lbtype
combined with fmt_ccase
.
即:
cleartool lbtype -kind lbtype -fmt "%n Lock status: %[locked]p %a"
您可以 grep 查找您要查找的内容
grep -v locked
grep -v obsolete
grep "My_Attribute=myvalue"
如何查询所有满足以下条件的标签?
- 标签不是
locked
或obsolete
- 标签有一个属性
My_Attribute
包含值myvalue
使用cleartool lbtype -kind lbtype
combined with fmt_ccase
.
即:
cleartool lbtype -kind lbtype -fmt "%n Lock status: %[locked]p %a"
您可以 grep 查找您要查找的内容
grep -v locked
grep -v obsolete
grep "My_Attribute=myvalue"