-2

I am trying to make enqueue a directory in audacious. For that I want to make a shell script which will take the input I am giving as the directory to enqueue. find . -iname \*.mp3 -print0 | xargs --null audacious --enqueue this will enqueue all the files in the current directory. I want to make a shell script which takes the input for current directory.

Praveen
  • 139
  • 1
  • 10

1 Answers1

1

Assuming that when you say "input" you're referring to command-line arguments:

#!/bin/sh
exec find "$@" -iname '*.mp3' -exec audacious --enqueue '{}' +
Charles Duffy
  • 280,126
  • 43
  • 390
  • 441
  • This works in terminal. I am using the shell script for command path in `nautilus-action`. But this also doesn't enqueue in gui. – Praveen Sep 20 '16 at 18:42