R
R
romanoverov2019-03-16 20:10:26
Text Processing Automation
romanoverov, 2019-03-16 20:10:26

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

1 answer(s)
V
Vladimir Kuts, 2019-03-16
@romanoverov

Very easy to do - from using sed in the simplest case - to using template engines - for example, jinja in python5c8d5099196b5123809006.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question