hi, can anyone tell me how to insert something at the beginning of each document, without replace any word?
Supose I want to add at the beginning of each 500 html files, a simple row like , how can I do this?
hi, can anyone tell me how to insert something at the beginning of each document, without replace any word?
Supose I want to add at the beginning of each 500 html files, a simple row like , how can I do this?
I would do that by writing a program.
For all files in folder
open file
insert x
tips with python
I do not have a finished code for you to use - have you used python before? Else it may be hard without some time investment from your side.
Maybe there are other alternatives that are more interesting?
or, another nice and simple regex solution. This will insert a new line at the beginning of file.
Search
(?s)(.*)
Replace by:
ANYTHING \r\n\1