Command line to delete all ClearCase view-private files

前端 未结 9 628
眼角桃花
眼角桃花 2020-11-30 05:13

I\'m looking for a command line to remove all view-private files and directories from a ClearCase view on Windows. I have Cygwin available as well.

The script avail

相关标签:
9条回答
  • 2020-11-30 05:49
    1. From the CLI To list the view private files executed the below command

      for /F "usebackq delims=" %i in (`cleartool lspriv -s ^| find /V "Rule:" ^| find /V "hijacked" ^| find /V "eclipsed"`) do @echo "%i"
      
    2. From the CLI executed below comand to delete the view private files

      for /F "usebackq delims=" %i in (`cleartool lspriv -s ^| find /V "Rule:" ^| find /V "hijacked" ^| find /V "eclipsed"`) do del /F "%i"
      
    3. Synchronizing the view with the project:
      From the project explorer select the stream properties, go to the view tab, select the view properties then click the "synchronize with the project"

    0 讨论(0)
  • 2020-11-30 05:55

    I've always used:

    ct lsprivate  | xargs rm
    
    0 讨论(0)
  • 2020-11-30 05:56

    I know that there is probably a better way but I always seem to come back to this one:

    ct lspriv | grep -v checkedout | xargs rm -rf
    
    0 讨论(0)
提交回复
热议问题