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"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With