There is this output i get:
Duration: 00:03:27.05, start: 0.000000, bitrate: 336 kb/s
I want to extract 00:03:27.05 from this whole string(Values Can Change).
So far I have tried:
String="Duration: 00:03:27.05, start: 0.000000, bitrate: 336 kb/s"
String="${String#:}"
String="${String%,,*}"
echo $String
It gives the desired results, but here I have to Declare String variable Two times and have to cut specific part of string separately.
So I Just want to Know an easiest and Straight-Forward approach to do it.
Thanks in Advance for Help :)