currently my code
Code:
if [ z `grep \"# listener.ora Network Configuration File\" $ORACLE_HOME/network/admin/listener.ora` ]
then
echo "listener.ora exists but all listeners are removed"
cp $DB_CREATE_PATH/tmp_listener.ora ${ORACLE_HOME}/network/admin/listener.ora
STARTLSNR=true
fi
I wanted to detect string "listener.ora Network Configuration File" in $ORACLE_HOME/network/admin/listener.ora, if there's such a string,
copy tmp_listener.ora into listener.ora and set STARTLSNR to true
how should I achieve this? I'm using bash and current using RHEL 5.3
thanks
thanks