List all files that do not match pattern using ls
maybe this command will help you
find ./ -maxdepth 1 ! -path "*txt"
ls|grep -v ".txt"
does this helps?
this may be help you
ls --ignore=*.txt
It will not display the .txt files in your directory.