I was looking for a way to play random music on my computer using mplayer and needed to shuffle recursively throughout many mp3/ogg files and directories in order to do so.
mplayer -shuffle `find . -name "*.mp3" -o -name "*.ogg"` does the trick.
Because of the result of my `getconf ARG_MAX`, I can only random through 2097152 files… but it’ll be alright I think…
Of course you can also make an alias out of it, as follows :
alias randomize=’mplayer -shuffle `find . -name "*.mp3" -o -name "*.ogg"`’
And one more thing : no gaps in the file paths. Use underscores "_".
Thank you again mirmo, christophe971 and kik…