Suppose, I have a string "Transferred 6.7828 MB in 244.434 seconds (28.4151 KB/sec)". I want to get 244.434 seconds out of this and this is just an example, these values can change. Basically I need to know the time taken (in seconds from this string). I am implementing this in Linux. How to do via grep?
This input will come from a log file abc.log.