I am trying to replace version number (like 00.00.00-00) in a file with actual version number in shell.
For this I use the following command:
sed -i 's/[0-9]*\.+[0-9]*\.+[0-9]*\-+[0-9]*/MyNewVersion/g' file.txt
Example of the file.txt:
Some text Bla Bla Bla-00.00.00-00.x86_SomeOtherInterestingThings
Unfortunately it does not give me desired result. Any advice?
+.