Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function SelectSong {
- randMp3="$(echo -e "scale=0 \n${numMp3s}*${RANDOM}/32767 \nquit" | bc)"
- mp3Name="$(echo "$(find ${mp3dir} -name "*.mp3" -print | awk 'NR=='${randMp3}' {print $0}')")"
- #echo -n "\"${mp3Name}\" "
- rhythmbox-client --no-start --play-uri="${mp3Name}"
- }
Add Comment
Please, Sign In to add comment