This is related to the unix expect tool that uses TCL so I hope the question is still relevent here.
If I have an array element expect_out(buffer) that has a multiple line content like this....
AAAAAAA
BBBBBBB
CCCCCCC
ABCD$
How would I go about removing the last line?
I've tried using string trimright but can only get it to remove the last character...
Thanks for any help you can give me