I want to parse a variable (in my case it's development kit version) to make it dot(
.
) free. If
version='2.3.3'
, desired output is
233
.
I tried as below, but it requires
.
to be replaced with another character giving me
2_3_3
. It would have been fine if
tr . ''
would have worked.
1 VERSION='2.3.3'
2 echo "2.3.3" | tr . _