Hi, everyone!
how can i remove the first character of a word?
Cya
Code: Select all
set a "word"
puts [string range $a 1 end]Code: Select all
set a "word"
regsub {[^.]} $a "" a
puts $aCode: Select all
set a "word"
set a [join [lrange [split $a {}] 1 end] ""]
puts $a[tomekk@zonk]:~# ./zonk.tcl
ord
ord
ord