Clearcase:列出匹配特定字符串的标签

标签 clearcase

我想列出与 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/

相关文章:

git - 在 Git 中 checkout 时感到困惑

regex - Jenkins 的 ClearCase 插件 - 带有正则表达式的分支

java - ClearCase 查看配置文件 : Can not determine if the view is associated

clearcase - Clearcase 中的文件元素大小为 0

C# 套接字和 ClearCase 动态 View 问题

clearcase - 如何在清晰的情况下检索跨基线修改的文件列表

clearcase - 当基线是增量时,为什么要向我的版本应用标签

python - Python3 'subprocess.check_output' 中的“cleartool find -print”返回空字符串

clearcase - 如何获得组件的基础基线?

clearcase - 当未进行任何更改时,RTC 源控件显示待处理的更改