-1

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

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

Gauranga Rathod
  • 348
  • 5
  • 16

1 Answers1

5

You could do:

ls | grep -v txt$
Toto
  • 89,455
  • 62
  • 89
  • 125