MaheshRathi
Technical User
Hi,
I am not able to use grep or egrep to get the matched lines for multiple patterns. For E.g. I want to get the lines matching to either "This is good" or "This is better" pattern.
The file can be like this ...
I say This is good or bad.
you say This is better may be.
Nobody knows how to get what is good or bad
then try it or do something
These are the content of file and want to get the lines 1,2 out of four.
Appreciate if you can provide me some pointers.
thanks,
Mahesh
I am not able to use grep or egrep to get the matched lines for multiple patterns. For E.g. I want to get the lines matching to either "This is good" or "This is better" pattern.
The file can be like this ...
I say This is good or bad.
you say This is better may be.
Nobody knows how to get what is good or bad
then try it or do something
These are the content of file and want to get the lines 1,2 out of four.
Appreciate if you can provide me some pointers.
thanks,
Mahesh