This may be stupid question but not able to solve it.
How to grep exact word and line along with it.
TEST:/u00/app/oracle/product/10.2.0/TEST:N
TEST2:/u00/app/oracle/product/10.2.0/ODS:N
TEST3:/u00/app/oracle/product/10.2.0/TEST:N
TEST4:/u00/app/oracle/product/10.2.0/ODS:N
TEST5:/u00/app/oracle/product/10.2.0/TEST:N
TEST6:/u00/app/oracle/product/10.2.0/ODS:N
if i do grep TEST /etc/oratab
it gives me all lines
How to grep lines only with TEST2.
is there any specific argument in grep.
How to grep exact word and line along with it.
TEST:/u00/app/oracle/product/10.2.0/TEST:N
TEST2:/u00/app/oracle/product/10.2.0/ODS:N
TEST3:/u00/app/oracle/product/10.2.0/TEST:N
TEST4:/u00/app/oracle/product/10.2.0/ODS:N
TEST5:/u00/app/oracle/product/10.2.0/TEST:N
TEST6:/u00/app/oracle/product/10.2.0/ODS:N
if i do grep TEST /etc/oratab
it gives me all lines
How to grep lines only with TEST2.
is there any specific argument in grep.