shell - search files in current directory whose name do not contain "txt" in linux -


i know how find files suffix .txt in current directory: find *.txt

how invert this?

i new linux, please help. thanks!

if want current directory, , shell bash:

shopt -s extglob ls !(*.txt) 

reference


Popular posts from this blog