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



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

linux shell find-util

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -