I need the following script ar advice on how to go about it. I have very little knowledge on scripting, but am willing to learn.
I have a file with lines that looks like this: 1204200141345_song.mp3 the numbers are date and time. day=12, month=04, year=2014, hour=13, min=45
I need a script that will read through the file and if a line maches the current date and time it will play the mp3 via mplayer/mpg123 at the correct time. When the mp3 ends it must continue to read the file. The file changes all the time. new lines go in other line are removed. the script will run as long as the pc is on.
Thanks in advance.