Globally in a file, I want to find all occurrences of strings starting with .git#v and replace the part of the string from the v until the next " with another string.
So, f.e. if I had migrations.git#v1.1.1", - I want to find it by .git#v and replace v1.1.1 with develop. The point is that the version number will vary for the different occurrences, that's why I need to rely on finding these pieces by the .git#v part.
I've got this so far:
sed -i -- 's/.git#v/.git#develop/g' package.json
but I know this is quite not enough because it will only replace the whole .git#v with develop.