How to list ClearCase activities in certain streams?

后端 未结 2 1016
無奈伤痛
無奈伤痛 2021-01-16 03:41

I\'m wondering if there is a way to specify which streams to get a list of activitis for in one command line call?

Right now I\'m building a list of activities based

2条回答
  •  清歌不尽
    2021-01-16 04:02

    If you are talking about bash script, you can easily store the list of streams in a variable:

    s=$(ct lsstream -s -invob /vobs/aPVob)
    

    You can then iterate on each line within $s:

    while read -r line; do
        echo "... $line ..."
    done <<< "$list"
    

    In a DOS script, I would recommend writing those streams to a file first, and then process each line.

    cleartool lsstream -s -invob /vobs/aPVob > %TMP%\s.txt
    
    for /F "tokens=*" %%A in (myfile.txt) do (
      cleartool lsact in stream:%%A@\aPVob
    )
    

提交回复
热议问题