开发者

Find command in unix

开发者 https://www.devze.com 2022-12-19 12:42 出处:网络
I want to perform a find command in开发者_C百科 a directory, and exclude from the set of results all files that are .gif, .jpeg, and .class.

I want to perform a find command in开发者_C百科 a directory, and exclude from the set of results all files that are .gif, .jpeg, and .class.

I was wondering if someone could help me out. I've been trying to play with the regex option, but clearly I'm not doing it properly.


Something like:

find . \! -name '*.class' \! -name '*.jpeg' \! -name '*.class'
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号