Answer the question
In order to leave comments, you need to log in
How to correctly form an expression replacement query?
here is my expression
grep '<a class="catalog-box__link" href="/"><i' -P -R -I -l * | xargs sed -i 's/<a class="catalog-box__link" href="/"><i/<a class="catalog-box__link" href="##"><i/g'
Answer the question
In order to leave comments, you need to log in
So cross both of these options:
grep '<a class="catalog-box__link" href="/"><i' -P -R -I -l * | xargs sed -i 's|<a class="catalog-box__link" href="/"><i|<a class="catalog-box__link" href="##"><i|g'
Did you mean it?
https://sed.js.org/?gist=c706a59d83d88852267bbe652...
If yes, then you did not take into account the specifics of escaping special characters in sed, I described this in more detail on the wiki.
If not, then give the original task.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question