Clearcase: List labels matching a particular string

前端 未结 2 1931
闹比i
闹比i 2021-01-14 16:56

I would like to list the available labels matching a particular string applied in the view.

2条回答
  •  无人共我
    2021-01-14 17:58

    I confirm a filter in cleartool find is not possible:

     ct find . -ele "lbtype_sub(My_LAB*)" -print
    

    would not work (no wildcard in query argument.

    If you cannot use a grep in a shell pipe, can you consider using grep in an exec part of a find, like in this example?

    ct find . -kind lbtype -exec "echo %CLEARCASE_PN%|grep MY_LAB"
    

    If this is not acceptable, you need to write the result in a file and process it with another tool (sed?)

    You have packages for Windows including Unix commands: see this SO question.
    Of you have freeware emulating the grep command.

    If you must stay with native Windows commands, you must redirect the result in a file, and use FIND (English translation).

提交回复
热议问题