开发者

Solaris find command

In Solaris, what is the syntax of find command to find files having multiple file name formats?

Eg: In my current directory and in its sub-directories if I have files like test.log, sample.out, demo.buf and some other files, how ca开发者_开发技巧n I write single find command to find these 3 files.


this is the correct one

find . \( -name "test.log" -o -name "sample.out" -o -name "demo.buf" \) -print


Same as all other Unixes:

 find . -name test.log -o -name sample.out -o name demo.buf
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜