Clearcase:列出与特定字符串匹配的标签 [英] Clearcase: List labels matching a particular string
问题描述
我想列出与视图中应用的特定字符串匹配的可用标签。
I would like to list the available labels matching a particular string applied in the view.
推荐答案
我在 cleartool find
是不可能的:
I confirm a filter in cleartool find
is not possible:
ct find . -ele "lbtype_sub(My_LAB*)" -print
不起作用(无
would not work (no wildcard in query argument.
如果您不能在外壳管道中使用grep,可以考虑在其中使用grep是查找的执行部分,如本例所示?
If you cannot use a grep in a shell pipe, can you consider using grep in an exec part of a find, like in this example?
ct find . -kind lbtype -exec "echo %CLEARCASE_PN%|grep MY_LAB"
如果不可接受,则需要将结果写入文件并使用其他工具(sed?)进行处理
If this is not acceptable, you need to write the result in a file and process it with another tool (sed?)
您具有Windows包含的软件包g Unix命令:请参见 SO问题。
你们中有免费软件模拟grep命令。
You have packages for Windows including Unix commands: see this SO question.
Of you have freeware emulating the grep command.
如果必须使用 native Windows命令,则必须将结果重定向到文件并使用FIND (英文翻译)。
If you must stay with native Windows commands, you must redirect the result in a file, and use FIND (English translation).
这篇关于Clearcase:列出与特定字符串匹配的标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!