> more pm
#!/bin/bash
#find ~/music/|sort -R|head -n 30|xargs aplay
list=$(find ~/music/|sort -R|head -n 30)
echo $list | fold -s > pl;
echo $list|xargs aplay -q -c 5;
printf "PM IS DONE\n";
exit 0;
it is intended to be the most stupid-simple music player. problem is that when it is done, i don't have a clean return to prompt; have to press enter to get new prompt.
it is about a year-and-half old and does everything i want except end well. if i can fix that, then done!
how to fix?