insert new line in 100 text files

  • Thread starter Thread starter Jan2004
  • Start date Start date
J

Jan2004

Do you know utility, which inserts new text line in 100 (for example) text
files; 100 text files has the 3-rd line the same.
Interesting for me criteria are:
1. Insert text: "The first example" after 11-th line.
2. Insert text: "The first example" after the text line (the same in 100
files): "For instance: print multiple pages on the sheet".
Jan
 
Do you know utility, which inserts new text line in 100 (for example)
text files; 100 text files has the 3-rd line the same.
Interesting for me criteria are:
1. Insert text: "The first example" after 11-th line.
2. Insert text: "The first example" after the text line (the same in
100 files): "For instance: print multiple pages on the sheet".
Jan

Would either of these help you?

http://www.inforapid.de/html/searchreplace.htm

http://www.boolean.ca/replace/

Something like

Find "this line"

and replace it with

"this line
plus next line"
 
Jan2004 said:
Do you know utility, which inserts new text line in 100 (for
example) text files; 100 text files has the 3-rd line the same.
Interesting for me criteria are:
1. Insert text: "The first example" after 11-th line.
2. Insert text: "The first example" after the text line (the
same in 100 files): "For instance: print multiple pages on the
sheet".

Specific problems like these are perfectly solvable with some
scripting. Have a look at Python, solve your problem and in the
meantime, learn a powerful scripting language without too much
effort.

The easiest Python system for Windows is available from ActiveState:

http://activestate.com/Products/ActivePython/

Just my 2 cents,
Wald
 
Thanks Tom Mcd. Your links have guided me to the places I was dreaming
about.

Thanks Wald for remembering (me to) Python ... but why not Rebol ?
 
Back
Top