Play me a random song

May. 9th, 2004 | 05:13 am

[manish :~/music ]$ find . -name '*.mp3' -exec echo '{}' >> index ';'

[manish :~/music ]$ while [ : ]; do mpg123 "$(sed -ne "`expr $RANDOM % \`wc -l index | awk '{print $1}'\` + 1`p" index )"; done

Shell scripting rules.

#