[cyzh@nginx logs]$ cat catalina.out | wc -l 29035698 [cyzh@nginx logs]$ sed -i '1,19035698d' catalina.out //d,清除,i,修改 [cyzh@nginx logs]$ cat catalina.out | wc -l 10001363
根据实际清空清空