How to display only files from aws s3 ls command?

后端 未结 9 865
北恋
北恋 2021-01-01 08:09

I am using the aws cli to list the files in an s3 bucket using the following command (documentation):

aws s3 ls s3://mybucket --recursive --human-readable --         


        
9条回答
  •  爱一瞬间的悲伤
    2021-01-01 09:07

    Simple command would be

    aws s3 ls s3://mybucket --recursive --human-readable --summarize |cut -d ' ' -f 8
    

    If you need the timestamp, just update command field values.

提交回复
热议问题