I'm working with a text file and I want to count the lines containing the word "timing" or "dochar" or both. How can I do this in the C-Shell?. I have trying with grep but I can't specify more than one word to be searched.
`THANK'S TO MIB FOR THE LAST ANSWER, JUST GREAT!! '
Use egrep
egrep timing\|dochar | wc -l
\| is used to sperate multiple search strings