BASH:Find files with multiple suffixes

find / -type f | egrep "\.(java|xml)$"

find / -type f -name "*.js" -o -name "*.xml"

posted @ 2021-07-14 17:10  xinyueliu  阅读(27)  评论(0)    收藏  举报