I have a script that runs a command like
$exiftool 3PDki5ZyhBgnoTEUu4JP.mov|grep -m1 Duration
and depending on the files I get back results like these
Duration : 01:25
Duration 01:25
Duration 01.25
I would like to be able to extract from these strings only the time, that is, 01:25 or 1.25.
try this:
....|grep -o "[^ ]*$"
or this short one:
...|awk '$0=$NF'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With