相关疑难解决方法(0)

如何使用 find 命令搜索多个扩展名

我可以jpg使用以下方法获取所有图像:

find . -name "*.jpg"  
Run Code Online (Sandbox Code Playgroud)

但是我怎样才能将png文件添加到结果中呢?

find regular-expression

210
推荐指数
4
解决办法
20万
查看次数

如何使用 GNU find 一次搜索多种文件类型?

如何使用 GNU find 命令一次匹配多种文件类型(一个搜索命令)?

手册页说:

-type c
    File is of type c:
    b      block (buffered) special
    c      character (unbuffered) special
    d      directory
    p      named pipe (FIFO)
    f      regular file
    l      symbolic link; this is never true if the -L option or the -follow
           option  is in  effect,  unless  the  symbolic link is broken.  If
           you want to search for symbolic links when -L is in effect, use
           -xtype.
    s      socket
    D      door (Solaris)
Run Code Online (Sandbox Code Playgroud)

我想搜索文件 ( f) 和符号链接 ( l …

find

4
推荐指数
1
解决办法
156
查看次数

标签 统计

find ×2

regular-expression ×1