我想列出与 View 中应用的特定字符串匹配的可用标签。
最佳答案
在 cleartool find
确认过滤器不可能:
ct find . -ele "lbtype_sub(My_LAB*)" -print
不起作用(在 wildcard 中没有 query argument 。
如果你不能在 shell 管道中使用 grep,你可以考虑在 find 的 exec 部分使用 grep,like in this example ?
ct find . -kind lbtype -exec "echo %CLEARCASE_PN%|grep MY_LAB"
如果这是 Not Acceptable ,您需要将结果写入文件并使用另一个工具(sed?)进行处理。
你有包括 Unix 命令在内的 Windows 软件包:见这个 SO question .
你们有freeware emulating the grep command .
如果您必须继续使用 native Windows 命令,则必须将结果重定向到文件中,and use FIND ( English translation )。
关于Clearcase:列出匹配特定字符串的标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3342166/