Is there any command in the windows command file that is similar to the unix grep command

Hello

I have a batch file that returns the status of the database to a file ex: "OPEN." Now I want to read the output file and search for the string 'OPEN' to an another batch file. any suggestions?. This is similar to the unix "grep" command I want to be done in the windows batch file.

It's my real batch file

REM - Description: check whether the database is in PLACE
REM - use:
REM - ORACLE_SID is an input for the file parameter
REM-

REM - beginning of batch file
off @echo
Set ORACLE_SID = %1
(
echo connect plp/ltd1plp@%1
ECHO has put cmdsep on
' set cmdsep echo ' ' '; --"
echo term on
c:/status_log.log reel Echo
echo select status from v$ instance;
Reel echo off
) | sqlplus/nolog
REM - end batch file



Thank you.

The same link of [google cache | http://209.85.229.132/search?q=cache:EJrm9tgj0a8J:www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/find.mspx+windows+find&cd=1&hl=en&ct=clnk&client=opera]. You can also use help:

find /?

Tags: Database

Similar Questions

Maybe you are looking for