Line appears as follows. With the ^[ representing the character above.
123456^[SomeString^[AnotherString^[0.00000 sec
I am attempting to get the time before the sec, but so far my commands have failed because character tends to delete the first number before the .
My string ends up
123456omeStringnotherString.00000 sec
The Strings may contain * characters, Spaces, and Underscores making it difficult to split.
and I can not retrieve the correct number of seconds.
Standard Unix awk, grep, and other commands have been attempted.
Attempts to use Perl's Regular expression on just the ^ return no results
Expand|Select|Wrap|Line Numbers
- @cutline = split(/\^/, $line, 5);
If Anyone can offer some help, it would be appreciated.
Edit:::
(I've noticed the Character doesn't appear at all in the forum either...how fun. It looks a bit like this <- )