1
FOR /F %%K IN('cleartool ls -recurse -short -nxn ') DO ( cleartool describe %%K | Find "labels:") > temp.txt

It gives an error

Syntax of command is incorrect

user247702
  • 23,641
  • 15
  • 110
  • 157

1 Answers1

0

If you need to find files with a specific label, it is easier to use the cleartool find command, as in "ClearCase list of files with given label type applied"

cleartool find . –version "lbtype(MY_LABEL-1.0)"

The Report Builder (also known in ClearCase Explorer as Report Wizard) can also allow you can navigate to Elements/Labels, which has the "Elements with Labels" and "Versions with Labels" reports.


More generally, your command would be better done in an -exec directive of a cleartool find command:

cleartool find . -exec "cleartool descr -fmt \"%n %l\n\" \"%CLEARCASE_PN%\""

(as in "how to find all the labels for a given file in clearcase")

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250