I am having a time format in a variable as:
TIME 12/12/12
I need to reformat it into 12-12-12. How I can do it in a Tcl (Expect) script?
My script is test.tcl:
#!/usr/bin/expect
set time "12/12/12"
# here I need something so time will become 12-12-12
puts $time
# I will get 12-12-12