How to sort ascending order by last modified date for s3 using aws cli

后端 未结 0 966
夕颜
夕颜 2021-01-12 01:10

Below code sort by desc. How do I have it sort by ascending?

KEY=`aws s3 ls $BUCKET --recursive | sort | tail -n 1 | awk \'{print $4}\'`
相关标签:
回答
  • 消灭零回复
提交回复
热议问题