linux下查找指定后缀的文件

例如查找当前目录下的所有后缀名时.c或.h的文件

find  .  -type f -regex  ".*\.\(c\|h\)"

posted on 2022-12-14 21:20  卖小女孩的小男孩  阅读(1899)  评论(0)    收藏  举报