I have a file.txt
some text
another text
text with the number to be replaced bla123
another text
etc
I know that the number I'm looking for is on line 3. I also know this is the only number in the line. For example, here, I want to replace "123" with "3333". I don't know what the number will be nor it's length before searching for it.
file.txt should look like this:
some text
another text
text with the number to be replaced bla3333
another text
etc