Check whether file/folder exist or not in tcl.
p18.tcl set folder /home/linux/tcl/farhat # you can even set file name. if {[file exists $folder] == 1} { puts &…
Read morep18.tcl set folder /home/linux/tcl/farhat # you can even set file name. if {[file exists $folder] == 1} { puts &…
Read morep17.tcl #!/bin/tclsh puts "How old are you?" gets stdin age if {$age >= 0 && $age <= 12} { p…
Read morep16.tcl #!/bin/tclsh puts "Enter Your name: " set name [gets stdin] puts "Your name is : $name "…
Read morep15.tcl #!usr/local/bin/tclsh set var {1 2 3} puts "output of concat: [concat $var {3 6}]" puts "…
Read morep14.tcl #!/bin/tclsh //It is advisable to mention which shell you using puts "Hello Raj!" puts Ra…
Read more