Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sort output of s3cmd

Tags:

amazon-s3

How can I sort the output of an

s3cmd ls s3://xxx.yyy.zzz/kkk/

based on date?

(This is not duplicate of How to sort output of "s3cmd ls")

Thank you very much

like image 789
ECII Avatar asked Feb 05 '12 10:02

ECII


1 Answers

just pipe output to sort

s3cmd ls s3://xxx.yyy.zzz/kkk/ | sort
like image 101
PA. Avatar answered Dec 31 '22 19:12

PA.