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
sed -n 筛选数据(从行到行)
最新推荐文章于 2022-12-20 14:00:15 发布