playing
#!/bin/bash# infinity-looper-2.sh# Infinite looping script# J.E.HUTTING 21-JAN-2017#set -x # expand the commands# set here the files to play ---------------------------------------------------FILES=`ls *.*`# ------------------------------------------------------------------------------#echo $FILES# who's playing itOMXPLAYER="omxplayer -b"echo "*****INFINITE LOOPING SCRIPT!!!"echo "*****ABORT WITH CTRL+C"while true; dowhile true; doIFS=$'\n' # IFS: Internal field separatorfor entry in $FILESdoIFS=$' \t\n'# let's playecho $entry$OMXPLAYER "$entry" > /dev/nulldonedonedone