Forum Discussion
Ddib_147504
Nimbostratus
Mar 14, 2014Problem with string map : TCL
Hi Team,
I test this two commands to replace $num with $num_fin in each ligneptf but with no result, the file isn't modified
string map -nocase [list $num $num_fin] $ligneptf
puts [st...
Thomas_Gobet
Nimbostratus
Mar 14, 2014Hi,
It should work but your problem may comes from that you didn't save this "new" variable. It replaces every occurrence but you have to save it manually.
For example what you can do is :
set new_ligneptf [string map -nocase [list $num $num_fin] $ligneptf]
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects