1 Star 0 Fork 0

水上清风/midCtrl

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
split_nohup_log.sh 280 Bytes
Copy Edit Raw Blame History
水上清风 authored 2017-06-08 21:37 . 修改文件名
#!/bin/sh
#分割nohup产生的大文件
this_path=$(cd `dirname $0`;pwd)
cd $this_path
echo $this_path
current_date=`date -d "-1 day" "+%Y%m%d"`
echo $current_date
#一兆大小分割
split -b 1048576 -d -a 4 nohup.out nohup_log/log_${current_date}_
cat /dev/null > nohup.out
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/ssqf_admin/midCtrl.git
git@gitee.com:ssqf_admin/midCtrl.git
ssqf_admin
midCtrl
midCtrl
master

Search