【发布时间】:2018-01-18 19:12:35
【问题描述】:
我想知道如何使用 aws s3api list-objects-v2 显示日期和大小
使用下面的逗号:
aws s3api list-objects-v2 --bucket mybucket --prefix Videos --query "Contents[?StorageClass=='STANDARD_IA'].Key" --output text | sed 's/\t/\n/g'
Ouutput:
Videos/test2/test2.mxf
Videos/mov2.mp4
My desired output:
1/18/2018 1.0 GiB Videos/test2/test2.mxf
1/18/2017 3.0 GiB Videos/mov2.mp4
谢谢
【问题讨论】:
标签: amazon-web-services amazon-s3 aws-cli