Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Test if File Contains a String 2

Status
Not open for further replies.

Michael42

Programmer
Oct 8, 2001
1,454
US
Hello All,

In a Bourne shell script how can I test if a text log file contains the string ORA- ?

Thanks,

Michael42
 
Or just
Code:
grep 'ORA-' log.file
and "grep" will echo all the lines that contain that string.


Trojan.
 
Thanks guys.

I think sometimes I make things too hard. Your suggestions were perfect.

Thanks,

Michael42
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top