I have a question regarding the awk/sed operators. I haveA file which has the following set of lines repeated where the numbersa line is belowpattern where a string line and itthat does not contains numbers occurs twice in the file.
Energy initial, next-to-last, final =
-87057.8200168321 -87208.7223900015 -87208.7197287879
Energy initial, next-to-last, final =
-87208.7197287879 -87208.7223900015 -87310.7197287879
what I want to do is extract the -87310.71972 value -87310.7197287879 which is the value at the end of the secind occuranceline following the 2nd occurrence of the line that does not contain numbers.
How can some one tell me how toI do this with awk/sed commandsAwk or Sed ?