Hi,
I have an expect question......
Given the following contents of expect_out(buffer)
uname -a
SunOS xx 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Fire
xxxx
does anyone know how I can remove the last line from the buffer? (its contents could be varying so I cant just use string trimright xxxx)
i want to just have
uname -a
SunOS xx 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Fire
Thanks for any help you can give!