while true;do cpu=`ps -o %cpu 10125 |tail -1`;mem=`ps -o %mem 10125|tail -1`;time=`date +%H%M%s`;echo $time,$cpu,$mem;sleep 1;done
作业 1 cat /tmp/nginx.log | grep '404'| head -3