1

I'm working with clearcase in Unix.

I accidently execute a shell, which make some file in the directory: /vobs/somePath/myDir.

I execute the command below in the directory:
cleartool ls -l
And I do get some view private object files.

What I need is to recover this directory with my baseline, which has been set before. Besides, I have some uncheckin files in other paths and I don't want to check them in right now. In other words, I just want to recover the directory myDir and don't touch any other files.

How to achieve this?

Yves
  • 11,597
  • 17
  • 83
  • 180
  • If you don't have any files checked out in the `directory /vobs/somePath/myDir`, then you can just do `rm *` in that directory. This will remove only the view private files, since clearcase objects will be read-only unless you checkout them – Thirupathi Thangavel Jun 27 '16 at 09:04

1 Answers1

0

For a dynamic view (/vobs/avob/myview/...), only private files are writable, so you can delete everything and it will only delete the private ones.

But, if you have checked out files (which should not be deleted), or if you don't want to risk anything, you can clean just the private files with, using cleartool lsprivate:

cd /vobs/somePath/myDir
ct lspriv . | grep -v checkedout | xargs rm -rf
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250