On my Linux machine, I am trying to shuffle all music in my directory and play it. When I run omxplayer $(ls -1b  |sort -R), it says /usr/bin/omxplayer.bin: invalid option -- '\'. This doesn't make sense. omxplayer should run the output of ls -1b which should show the output of the directory in 1 column and show escape characters so it would recognize the spaces. What am I doing wrong and how else could I shuffle all music in my directory and play it?
omxplayer shuffle?
audio;ls;sort;mp3;music
omxplayer $(ls | shuf -n 1) should work.