Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使 enqueue 成为一个大胆的目录。为此,我想制作一个 shell 脚本,它将我提供的输入作为入队的目录。find . -iname \*.mp3 -print0 | xargs --null audacious --enqueue这会将当前目录中的所有文件排入队列。我想制作一个 shell 脚本,它接受当前目录的输入。
find . -iname \*.mp3 -print0 | xargs --null audacious --enqueue
假设当您说“输入”时,您指的是命令行参数:
#!/bin/sh exec find "$@" -iname '*.mp3' -exec audacious --enqueue '{}' +