You can return the error lines in a file using.
The "grep -i ORA-" command limits the output to lines containing "ORA-". The "-i" flag makes the comparison case insensitive. A count of the error lines can be returned using the "wc" command. This normally give a word count, but the "-l" flag alteres it to give a line count.root> cat alert_LIN1.log | grep -i ORA-
root> cat alert_LIN1.log | grep -i ORA- | wc -l
No comments:
Post a Comment