A
A
Amin Aliyev2019-04-24 20:02:26
Text editors
Amin Aliyev, 2019-04-24 20:02:26

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

3 answer(s)
P
Pavel, 2019-04-24
@amin4ik_03

shpargalkablog.ru/2017/07/notepad.html

S
Stalker_RED, 2019-04-24
@Stalker_RED

find /path/to/files -type f -print0 | xargs -0 sed -i 's/что_заменить/чем_заменить/g'

L
lossyy, 2019-04-24
@lossyy

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 question

Ask a Question

731 491 924 answers to any question