我可以jpg
使用以下方法获取所有图像:
find . -name "*.jpg"
Run Code Online (Sandbox Code Playgroud)
但是我怎样才能将png
文件添加到结果中呢?
如何使用 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 …