I've got the following text file:
dsfgsdgf dsfsdg
Version: 29.15-005
dfs sdfg sdf g
dsfsdfgsdfgsfdg
So it contains a bunch of data and there is a unique line with
Version:
The first time the script is called, 29.15-005 will replaced by 29.15-006. The next time 29.15-006 will be replaced 29.15-007 etc etc
I dont need to check what happens when it gets to -999 as the value will never get that high.
Seen various awk scripts using F and OFS but can't seem to work out how to apply to the above.
Any pointers would be appreciated.
The text file will be different each time its called with other data in it (and different lengths) , but the info from the Version: will remain constant.