perl -F= -pale '$_ = sprintf "%.7s %.4f", @F[-5,-3]' fix.log
¶ cómo funciona:
° split each line as it comes on equal to sign. Store the split values in the array @F
° counting from the end of the array @F, the last but 4th and last but 2nd fields are what we need.
° we require the 7 chars and accuracy upto 4 digits.
° stuff these in $_ and -p option auto prints it.
Seguir awk
puede ayudarte aquí.
awk -F"=" '{sub(/[0-9]+/,"",$(NF-4));print $(NF-4),$(NF-2)+0}' OFMT="%.05g" Input_file