#274 The glob command in tcl

glob command returns the names of the files that match a pattern.

set files [glob *.tcl]
foreach file $files {
    puts $file
}

Output:

ex274.tcl

Discover more from Tips and Hints for Aerospace Engineers

Subscribe now to keep reading and get access to the full archive.

Continue reading