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
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"
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"
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"
I've always used:
ct lsprivate | xargs rm
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