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

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -