Tuesday 10 May 2016

How to search for Specific text in Alert Log

vi and vim have powerful searching capabilities because they bring to bear the richness of regular expressions.

To search for the next occurence of the text ‘ORA’ from the current cursor position, type:

/ORA

Search backward from the current position by using  ' ? '  instead of / in the command.

Once you have searched for something, you can find the next occurrence by pressing n or the previous occurrence with N .

Searching in vi/vim is enhanced with regular expressions.
For example, to find the next occurence of the text ‘ORA’ that occurs at the beginning of a line, use:
/^ORA

No comments:

Post a Comment