RegExp to match everything up to first blank line

Posted by SKWebDev on Stack Overflow See other posts from Stack Overflow or by SKWebDev
Published on 2010-05-01T20:56:33Z Indexed on 2010/05/01 21:07 UTC
Read the original article Hit count: 181

Filed under:
|

Hi,

I'm writing a bash script that will show me what TV programs to watch today, it will get this information from a text file.

The text is in the following format:

Monday:
Family Guy (2nd May)

Tuesday:
House
The Big Bang Theory (3rd May)

Wednesday:
The Bill
NCIS
NCIS LA (27th April)

Thursday:
South Park

Friday:
FlashForward

Saturday:

Sunday:
HIGNFY
Underbelly

I'm planning to use 'date +%A' to work out the day of the week and use the output in a grep regex to return the appropriate lines from my text file.

If someone can help me with the regex I should be using I would be eternally great full.

© Stack Overflow or respective owner

Related posts about regex

Related posts about grep