I want to search for a pattern in a file based on the result of search. For example,
grep '05-Dec' filename.ext
For searching 'Exception' pattern, I used,
grep 'Exception' filename.ext
Anyway, these two worked successfully when run individually. But I want to search the second pattern based on the result of the first pattern.
Please help me out.