当我在 ls
命令中使用通配符时,它起作用了。
$ ls '*.{mp3,ogg}' # Showing only two formats in the command
cannot access *.mp3: No such file or directory
1.ogg 2.ogg 3.ogg
但是使用查找命令不起作用
$ find ~ -iname '*.{mp3,ogg}'
行中有什么错误?
最佳答案
我认为这对你有用
find ~ -name "*.mp3" -o -name "*.ogg"
-o 相当于 bool 值 or
关于linux - 在 linux 中使用 bash 查找文件夹中的所有音频文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11928440/