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

前端 未结 6 1310
情歌与酒
情歌与酒 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:19

    I followed all above solutions and it is great command. I had some more requirements that were not covered above so I modified script little more with below additional points

    1. Excluded batch file from list (otherwise current batch file also coming in list)
    2. Removed Directory from list as generally I am interested in file

    3. Specially for java developer, excluded target folder and jar files as they are not generally checked in

    4. Removed .classpath, .project and .settings folder which is specific to Eclipse (if they are same level as project/modules)

      @echo off
      setlocal
      
      @echo.
      @echo Searching, please wait as this can take a while...
      @echo.
      for /F "usebackq delims=" %%i in (`cleartool ls  -rec ^| find /V "Rule:" ^| find /V "hijacked" ^| find /V "eclipsed" ^| find /V "-->" ^| find /V ".settings" ^| find /V "jar" ^| find /V "keep" ^| find /V "target" ^| find /V ".classpath"  ^| find /V ".project" ^| find /V "%~n0" `) do ( if not exist %%i\* @echo "%%i")
      
      @echo.
      @echo === === === === === Search Complete === === === === === === 
      @echo.
      @echo.
      
      pause
      

提交回复
热议问题