Skip to content
Prev 58506 / 398502 Next

list files ignoring the case option

On Thu, 4 Nov 2004, Adaikalavan Ramasamy wrote:

            
I'd write that in one line, but it seems as good a way as any.
Not as such.

First, I think you want "\\.txt$" there if you do mean file extensions.

You can use a regexp that ignores case, though, e.g. "\\.[Tt]{Xx][Tt]".

But I would just use your original idea, which is essentially what ls() is 
doing internally and is self-documenting.