For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Ddib_147504's avatar
Ddib_147504
Icon for Nimbostratus rankNimbostratus
Mar 19, 2014

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's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus

    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