
菜鸟求助一段很简单的unix shell
我想在unix下对nohup.out.1、nohup.out.2··nohup.out.*多个日志文件进行压缩,假设压缩nohup.out.1步骤的步骤为下:cdbea/...
我想在unix下对nohup.out.1、nohup.out.2··nohup.out.* 多个日志文件进行压缩,假设压缩nohup.out.1步骤的步骤为下:
cd bea/user_projects/domains/cy_domain/bin
cp nohup.out.1 nohup0202_1.out
cat /dev/null > nohup.out
compress nohup0202_1.out
那么我现在如何编写一个shell,执行后会批量把这些日志文件压缩呢 展开
cd bea/user_projects/domains/cy_domain/bin
cp nohup.out.1 nohup0202_1.out
cat /dev/null > nohup.out
compress nohup0202_1.out
那么我现在如何编写一个shell,执行后会批量把这些日志文件压缩呢 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询