0

This question already has an answer here:

For a directory containg .txt, .py, .xyz and other plain ASCII files, I know that a complete file listing ls *.* may be constrained to display either one file type or a groups of file types (e.g., ls *.py *.txt). With the exclusion of a specific file showcased here, I was wondering if there were a handy complementary file search to this to list all files which are not a .txt. If it were just a string, a RE similar to a [^.txt] could exclude this pattern...

marked as duplicate by muru, pLumo, user1133275, Kusalananda Jun 12 at 12:05

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.