Search code examples
clearcasecleartool

How to delete a view tag with special characters in ClearCase


I have a view, for some reason, it was named with a special character: "0x7f", at least I think so..
For example:

MyView123456   -> MyView'0x7f'123456

I can only found this view by

ct lsview #list all views.

And I found this "0x7f" when dump the outputs to a file.
And using vim.

Now I'm trying to delete this view totally.
I can unregistered and delete the view itself by -uuid. But I cannot delete the view tag.
And I also found wildcard '*' seems not working.

Does anyone know how to delete this view tag?
P.s. I'm under Linux, and no GUI.


Solution

  • Try first if dome of the workaround described in "Removing ClearCase objects whose name begins with a hyphen", when using cleartool rmtag:

     cleartool rmtag -- MyView*
    

    Note the use of '--' in order to separate the command from its parameters

    The wildcard being expanded by your shell, try and use it instead in the cleartool interractive session:

    cleartool
    > rmtag -- MyView*
    

    In Linux shell, see if a single quote is enough:

    cleartool rmtag -- MyView'0x7f'123456
    # or
    cleartool rmtag -- 'MyView0x7f123456'