issues
search
CNzhangxy
/
repo
0
stars
0
forks
source link
issues
Newest
Newest
Most commented
Recently updated
Oldest
Least commented
Least recently updated
Test
#3
CNzhangxy
opened
1 month ago
2
#!/bin/bash LOG_FILE="$1" SPLIT_SIZE=20M OUTPUT_DIR=$(dirname "$LOG_FILE") if [[ -f "$LOG_FILE" ]]; then # 使用 split 命令分割日志文件 split -b $SPLIT_SIZE "$LOG_FILE" "${LOG_FILE}_part" # 压缩分割后的文件 for part in "${LOG_FILE}_part"*; do gzip "$part" done # 删除原始日志文件 rm -f "$LOG_FILE" fi
#2
CNzhangxy
opened
6 months ago
1
issue 1 (k8s)
#1
CNzhangxy
opened
1 year ago
6