Thanks to all for your comments.
I have included your code for the mpd function and now the mpc requirement is specified in the instrucions. Thanks.
I didn't know that spaces needed to be converted to underscores...
The picture grabber shouldn't process directories without images. This is the command:
The problem is that any file that contains ".jpg" or ".png" on it name will be processed as a picture.
ls -t1 | egrep -i '\.jpg|\.png' | head -n 3
I will see if I can make it to ignore hidden folders.
I am trying to get Banshee to work but I am having some problems...
If there is an expert reading this that can help me out the problem is this:
From a directory with mp3 files the following command gives me what I need:
If I paste the result in front of the following command it works:
find "$PWD" -maxdepth 1 -type f -iname '*.mp3' | sort | sed -e 's/^/"/' -e 's/$/"/' | tr '\n' ' '
But if I put all together it doesn't work:
banshee --play --enqueue
banshee --play --enqueue $(find "$PWD" -maxdepth 1 -type f -iname '*.mp3' | sort | sed -e 's/^/"/' -e 's/$/"/' | tr '\n' ' ')