命令以递归方式查找当前目录中的所有视图私有文件 [英] Command to find all view private files in the current directory recursively
本文介绍了命令以递归方式查找当前目录中的所有视图私有文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
什么是clearcase命令,以递归方式查找当前目录中的所有视图私有文件?
解决方案
上 cleartool ls
:
-
ct lsprivate :但仅适用于动态视图,而不是快照视图。
-
ct ls -rec -view_only
但是这两个列表也您的签出文件
如果您只想要私人文件,即跳过被劫持/ eclipsed /签出和符号链接 ,您需要过滤这些。在Windows中,这将是:
<$ ccfor / Fusebackq delims =%i in(`cleartool ls -rec ^ | find / VRule:^ | find / Vhijacked^ | find / Veclipsed find / V - >`)do @echo%i
<
cleartool ls -rec | grep -vRule:| grep -vhijacked| grep -veclipsed| grep -v - > | xargs echo
What is the clearcase Command to find all view private files in the current directory recursively?
解决方案
The usual commands are based on cleartool ls
:
ct lsprivate
: but it is only for dynamic views, not snapshot viewsct ls -rec -view_only
: at least, it works in both snapshot and dynamic views
However both list also your checked-out files.
If you want only the private files, ie skipping the hijacked/eclipsed/checked-out and symlinks, you need to filter those out.
In Windows, that would be:
for /F "usebackq delims=" %i in (`cleartool ls -rec ^| find /V "Rule:" ^| find /V "hijacked" ^| find /V "eclipsed" ^| find /V "-->"`) do @echo "%i"
In Unix:
cleartool ls -rec | grep -v "Rule:" | grep -v "hijacked" | grep -v "eclipsed" | grep -v "-->" | xargs echo
这篇关于命令以递归方式查找当前目录中的所有视图私有文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文