I am using below command to retrieve baselines.
cleartool lsbl -fmt "%n\n" -comp comp_name@\vob_name -stream stream_name@\vob_name
I am searching for a way to display baselines which is numerically equal to/ less than certain given baseline. Is there any way to achieve it?
Case 1 : If output is
abc_6.2168
abc_7.4587
abc_8.2950
abc_9.3032
If I want to display baseline which is numerically equal to / less (and closest) to abc_8. Hence, the expected result in Case 1 should be : abc_8.2950.
Case 2 : If output is
abc_6.2168
abc_7.4587
abc_9.3032
Expected result should be : abc_7.4587
NOTE : Trying this on Groovy (Jenkins pipeline)