ITeye博客

linux 读取最后1行

foolraty · 2011-10-13 13:30 · Markdown

#read the last 2 line of file #new=tail -n 2 /data/bakper30minExp.log #echo $abc #read the last 2 line of file #success=tail -n 2 /data/bakper30minExpSuccess.log #echo $test #if ;then

echo "Exp success"

sqlplus mnshbak/mnshbak@orcl @/u/dropPer30min.sql

imp mnshbak/mnshbak@orcl file=/data/bakper30min.dat fromuser=mnsh touser=mnshbak log=/data/bakper30minImp.log

cp /data/bakper30min.dat /data/bakper30minSuccess.dat

#else

echo "Exp fail"

#fi

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。