shell分割日志
Linux平台上一个程序产生日志比较快,打算在日志达到100M的时候就转储#!/bin/shSIZE=`du -m nohup.out|cut -f1` #获取大小DATE=`date \"+%Y%m%e\"` #生成后缀if [ SIZE -gt 100 ] ; then mv nohup.out nohup.$DATE touch nohup.out...
注册时间:2014-12-28