Answer the question
In order to leave comments, you need to log in
How to change code in all html pages?
I have many pages (name.html) and on each I need to change the path to css and the path to the image.
How to do it quickly?
And then I will do it manually for a very long time and one at a time .... The handles will get tired.
Answer the question
In order to leave comments, you need to log in
find /path/to/files -type f -print0 | xargs -0 sed -i 's/что_заменить/чем_заменить/g'
Excellent program Emeditor
Open all html files in it at once, and then there is such a thing as search and autocorrect, click on the search for the desired path and substitute the desired new path for replacement, then the replace all button.
Save all files, you can just click close and apply to all. Voila, 2 minutes and you are all updated.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question