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
精彩评论