# /home/yiqinif [ $1x = "-l"x ] ; then /home/yiqin/sh/oms-backend.log.view.sh;elif [ $1x = "-d"x ] ; then source /home/yiqin/sh/dir-list.sh;else echo 请输入命令: echo -e "\t" -d 查询常用目录 echo -e "\t" -l 查看最新日志fi# /home/yiqin/sh/omslogfile=`ls /data/web/app/runtime/logs/manager-seller/all/ | tail -n 1`tail -fn 1000 /data/web/app/runtime/logs/manager-seller/all/$logfile# /home/yiqin/sh/direcho -e "\t 1. /home/yiqin/oms-backend oms-backend项目目录"echo -e "\t 2. /data/web/app/runtime/logs/manager-seller/all oms-backend日志目录"echo -e "\t 3. /usr/local/nginx/conf/vhost/yiqin nginx配置路径"echo -e "\t 4. /home/yiqin/log/nginx/oms-backend.error.log nginx错误日志"echo -e "\n"read -t 3000 -p "请输入要执行数字项": numecho -e "\n"if [ $num == 1 ]then cd /home/yiqin/oms-backend elif [ $num == 2 ]then cd /data/web/app/runtime/logs/manager-seller/allelif [ $num == 3 ]then cd /usr/local/nginx/conf/vhost/yiqinelif [ $num == 4 ]then tail -fn 500 /home/yiqin/log/nginx/oms-backend.error.logfi