I am writing a bash script that will show me which television programs will be watching today, it will receive this information from a text file.
The text is in the following format:
Monday:
Family Guy (May 2)
Tuesday:
House
The Big Bang Theory (May 3)
Wednesday:
Bill
NCIS
NCIS LA (April 27)
Thursday:
South Park
Friday:
Flashforward
Saturday:
Sunday:
Hignfy
Underbelly
I plan to use "date +% A" to develop the day of the week and use the output in the grep regular expression to return the corresponding lines from my text file.
If someone can help me with a regex that I should use, I will be forever great.
By the way, this bash script will be used in the Conky dock, so if anyone knows of a better way to achieve this, I'd love to hear about it,
source share