minio列出文件后统计处理

 

# 将列表输出到文件
/opt/minio_client/mc ls --recursive langfuse_minio/langfuse > minio_file_list.txt

 

文件日期排查
[root@localhost ~]# cat minio_file_list.txt|awk '{print $1}'|tr -d '['|sort -k 1 -u
2025-11-18
2025-11-19
2025-11-20
2025-11-21
2025-11-22
2025-11-23
2025-11-24
2025-11-25
2025-11-26

 

按照第一列统计
[root@localhost ~]# cat minio_file_list.txt|awk '{print $1}'|tr -d '['|sort -k 1 |uniq -c
4695 2025-11-18
3594 2025-11-19
4008 2025-11-20
7265 2025-11-21
248 2025-11-22
57 2025-11-23
9144 2025-11-24
14150 2025-11-25
8870 2025-11-26

posted @ 2025-11-26 16:08  slnngk  阅读(7)  评论(0)    收藏  举报