This question is different from others I've seen in stackoverflow since it has to look for a string inside special characters like] or), and replace in different text strings urls associated with a markdown text. In the other solutions I have found there is only text substitution, I can not find and replace in a loop with different text.
- I have these images in a text of markdown:
...  ...  ...
And new images from imgur from this variables:NEW_IMG1="https://i.imgur.com/xY0DgmM.png" NEW_IMG2="https://i.imgur.com/E98NLTT.png"
How do I change the old images for the new ones in bash?
Change this: BHoO2Wr for xY0DgmM
- Second question:
If my images are like this:
...

...

...
How do I change BHoO2Wr for xY0DgmM and qNxviLS for E98NLTT in bash?