When searching the "recursive glob"-search here in the forum, I found:
Yes, it DOES look nice, but how do I "start" this one? How do I have to pass the params "pattern" and "dir" to the proces (the "pattern {dir ./}" is too much for me).proc recursiveGlob {pattern {dir ./}} {
set files [glob -nocomplain -types f -dir $dir $pattern]
foreach d [glob -nocomplain -types d -dir $dir *] {
set files [concat $files [recursiveGlob $pattern $d]]
}
set files
}
And what is the output, when it has finished searching everything? Does it write everything to var "files"?
Please Comment! THX