List of files matching a pattern
Posted: Tue May 31, 2005 2:35 pm
Hi
I found a function which shows the current working directory on
http://www.newlisp.org/index.cgi?page=Code_Snippets
which is very handy
Is there a function which is similar to the Tcl glob function?
http://tmml.sourceforge.net/doc/tcl/glob.html
I would like to say
and get back a list of all file names in the current working directory matching the pattern.
Perhaps somebody already has implemented something like this?
Thanks for the answer in advance.
HJH
I found a function which shows the current working directory on
http://www.newlisp.org/index.cgi?page=Code_Snippets
which is very handy
Is there a function which is similar to the Tcl glob function?
http://tmml.sourceforge.net/doc/tcl/glob.html
I would like to say
Code: Select all
(glob "*.txt")
Perhaps somebody already has implemented something like this?
Thanks for the answer in advance.
HJH