Re: dir() in linux
- Posted by jbrown105 at speedymail.org Oct 02, 2002
- 413 views
> > Jerry Story writes: > > The Euphoria manual, under "dir", says: > > "On Windows and DOS st can contain * and ? wildcards > > to select multiple files." > > > Does this mean dir() can't use wildcards on Linux? > > That's right. > On Windows and DOS, the C library provides > this wildcard functionality. On Linux, > you'll have to write your own Euphoria code to filter out > the filenames that you want/don't want. > Maybe someday I'll get around to enhancing dir on Linux/FreeBSD etc. > > Regards, > Rob Craig > Rapid Deployment Software > http://www.RapidEuphoria.com > I wrote a lindir() function which could use wildcards in the same way that Windows and DOS does. Also it is able to return more information about file permissions for a file. (I cheated and used "ls" for this, btw the wildcard expansion for /bin/ls is done by the shell, not by /bin/ls itself.) If anyone wants this function email me. jbrown --