I have logs with the following pattern:
I need to extract date and time... for the first line I Do the following:
set starttime [string range $procline 2 20]
But how can I extract it if the identifier (the code before the time) is longer?
I'm using expect (tcl). I tried matching the string, but maybe I'm doing something wrong. The line is already loaded as
I tried many different ways from other answers I've found here in the forums, but nothing really worked out for me.