递归查找当前目录下所有查看私有文件的命令 [英] Command to find all view private files in the current directory recursively
本文介绍了递归查找当前目录下所有查看私有文件的命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
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屋!
查看全文