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.
audaciousでディレクトリをエンキューしようとしています。そのために、私が与えている入力をエンキューするディレクトリとして受け取るシェルスクリプトを作成したいと思います。find . -iname \*.mp3 -print0 | xargs --null audacious --enqueueこれにより、現在のディレクトリ内のすべてのファイルがキューに入れられます。現在のディレクトリの入力を受け取るシェル スクリプトを作成したいと考えています。
find . -iname \*.mp3 -print0 | xargs --null audacious --enqueue
「入力」と言うとき、コマンドライン引数を参照していると仮定します。
#!/bin/sh exec find "$@" -iname '*.mp3' -exec audacious --enqueue '{}' +