Forum Discussion
TCL , how can i replace directly a line in the file.
Hi team,
in this code i want to replace a line but it creates another line on the next one , if you have an idea to replace directly on the line, thank you in advance :
set new_line [string map -nocase [list $num $new_num] $line]
puts -nonewline $file $new_line
1 Reply
- Hamish
Cirrocumulus
I'd probably look at using a stream myself... If it's fairly static, you could just use a stream profile. If you want it to be more dynamic you can use an iRule to setup the stream and then let it run on that connection.
A good example is the ProxyPass iRule that is in the codeshare.
H
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com