This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.
Help for those learning Tcl or writing their own scripts.
-
Hiter
- Voice
- Posts: 1
- Joined: Sun Feb 24, 2013 4:33 pm
Post
by Hiter »
Hi.
How replace a specific line in the file?
e.g
1. <html>
2. <head>
3. <p><center>Hello WORLD!!!</p></center>
4. <p> How are you </p>
5. </head>
6. </html>
And how to replace 4 line text: Do You love dogs?
I do not want to pre-script.
I need a formula that turns the text on the specific line.
Thanks.
-
Nimos
- Halfop
- Posts: 80
- Joined: Sun Apr 20, 2008 9:58 am
Post
by Nimos »
set text [join [lreplace [split $text "\n"] 3 3 "Do you love dogs?"] "\n"]