T
T
tvorex2016-01-09 15:31:38
batch processing
tvorex, 2016-01-09 15:31:38

How to do text replacement in multiple files using ordinal?

I have a lot of files, more than 300
and I need to insert an image in each file

<div class="img-list">
  <img src="../Images/image-.jpg" alt="Иллюстрация к книге" />
</div>

1. How can I use the search for all these files? File search is in Sublime text
2. How to replace the text image-.jpg with the serial number image-1.jpg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor Pushkarsky, 2016-01-09
@RainMEN

Use PHP Storm Crtl+Shift + R.
Specify the directory in which to search, insert the field to be searched for and what to replace it with.

T
tvorex, 2016-01-09
@tvorex

You can do this in Sublime Text as well. The trick is to replace it with different text.
In this case:
image-1
image-2
image-3
I found a plugin that does this Incrementor
https://packagecontrol.io/packages/Incrementor
But something did not figure out how to install it?
Through sublime, he does not find it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question