Answer the question
In order to leave comments, you need to log in
Bulk creation of txt files based on a template?
Let's say I have a template like:
12
trololo
56
text
78
910
and I need to create many txt files based on this template, which will differ only in the text line. And take the values for text from another txt line by line.
Thank you.
Answer the question
In order to leave comments, you need to log in
Very easy to do - from using sed in the simplest case - to using template engines - for example, jinja in python
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question