On Windows I’m trying to run cleartool find command and get all versions in a branch that have a specific label, the output should include version and user name.
The command works great the problem is how to to redirect the output to a text file.
cleartool find -avobs -branch brtype<BRANCH>) -version "lbtype(<LABEL>)" -exec "cleartool describe -fmt \"%Xn : %u\n\" \"%CLEARCASE_XPN%\"
I have tried using >, >>, |, | tee combinations but nothing works
Any idea how to do that ?
Try to wrap the command in a CMD shell, which can then be redirected:
cmd /C "cleartool find -avobs -branch (brtype<BRANCH>) -version "lbtype(<LABEL>)" -exec "cleartool describe -fmt \"%Xn : %u\n\" \"%CLEARCASE_XPN%\""" > aText