How to remove the first dot before the first number?
I have the following file
more file Version …………2.4126.96.36.1992
I want to get only the version number - 2.465768.332
Assuming removing the dots from the version number is a typo.
To extract only the version number from a file the number on is the first line beginning with 'Version' and nothing follows the version number, you could do:
For your sample input, it'd produce:
As mentioned in the comment, it isn't quite clear what is the desired output. If it's the expected output as mentioned in the question body, you might use
which would produce: