ls - Linux list files recursively ignoring a pattern -
i have same problem this post.
only instead of finding .txt
files, want list of files not .txt
files.
something like
$ ls -lr | grep -v .java
which not want.
use find
suggested in post , negate -name
condition !
have other way round:
find . -type f ! -name "*.txt" # ^^^^^^^ ^^^^^^^^^^^^^^^ # files | # file names not ending .txt
Comments
Post a Comment