-1

I tried, ls (^(*.txt)).

I get error: ls cannot access. No such file or directory.

Gauranga Rathod
  • 308
  • 3
  • 15

1 Answers1

4

You could do:

ls | grep -v txt$
Toto
  • 86,179
  • 61
  • 85
  • 118