Hi all,

On unix, I use the following script to change the name of alert file.
(At end of day, append the date to the name of the file)
How to change it in the same way on NT?

for log_file in $(find $ORACLE_BASE/admin -name "alert_FMRPT.log" | grep
-v alert_FMRPT_.*.log)
do
   newfile=$(echo $log_file | sed "s/\.log$/_$dt.log/")
   echo "moving alert logs: $log_file $newfile"
   mv $log_file $newfile

------
You are subscribed as [email protected]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to