Command to find all view private files in the current directory recursively

前端 未结 6 1313
情歌与酒
情歌与酒 2020-11-28 11:49

What is the clearcase Command to find all view private files in the current directory recursively?

6条回答
  •  借酒劲吻你
    2020-11-28 12:15

    The usual commands are based on cleartool ls:

    • ct lsprivate: but it is only for dynamic views, not snapshot views
    • ct 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
    

提交回复
热议问题