I was trying a multiple grep search, but for some reason it wasn't working:
Input:
What time is it in India
Time in Israel
Dogs are awesome
I want chocolate cake
Desire Output:
What time is it in India
chocolate cake
I used the command:
grep "(What time is it)|(chocolate cake)" inputfile.txt
However I got the an empty output instead. Would you know why this is going wrong?