sed -n ''478142,919384''p alert_sid.log |grep "add datafile" >t.txt
----------------------------------------------------------------------
#!/usb/bin/ksh
cd /home/oracle/admin/sid/bdump
dd=`date +%Y%m%d`
riqi=`date |cut -c1-10`
year=`date | awk '{print $6}'`
hang=`grep -nE ^"$riqi".*"$year"$ alert_sid.log|head -1|cut -d: -f 1`
sed -n ''"$hang",$''p alert_sid.log|grep ORA- >file.txt