I'm having a heck of a time removing characters in Bash. I have a string that's formatted like temp=53.0'C
. I want to remove everything thats not 53.0
.
I'm normally a Python programmer, and the way I'd do this in Python would be to split the string into an array of characters, and remove the unnecessary elements, before putting the array back onto string form. But I can't figure out how to do that in Bash.
How do I remove the desired characters?