I have this bit of info from a bash script. How can I keep only the time?
"real\t0m3.21s"
Needs to be
3.21s
The output is produced from time function.
I have this bit of info from a bash script. How can I keep only the time?
"real\t0m3.21s"
Needs to be
3.21s
The output is produced from time function.
Using sed:
sed -n 's/real\\t0m//p' <<< "real\t0m3.21s"
Replace "read\t0m" for nothing and print