Find file ending with .sh OR .bin [duplicate]
How can I find all the files ending with .sh OR .bin in a given folder.
I know I can do:
find /path/to/folder -name "*.bin"
to find all bin file. What must I add to also look for .sh files ?
The manual page tells you that -o
is the OR operator. If you want case insensitivity, use iname
instead of name
.
find /path/to/folder -iname "*.bin" -o -iname "*.sh"
精彩评论