How to sort output of "s3cmd ls"

Posted by dba.in.ua on Stack Overflow See other posts from Stack Overflow or by dba.in.ua
Published on 2010-04-20T10:01:56Z Indexed on 2010/04/20 10:03 UTC
Read the original article Hit count: 434

Filed under:
|
|
|

Amazon "s3cmd ls" takes like this output:

2010-02-20 21:01 1458414588 s3://file.tgz.00
2010-02-20 21:10 1458414527 s3://file.tgz.01
2010-02-20 22:01 1458414588 s3://file.tgz.00
2010-02-20 23:10 1458414527 s3://file.tgz.01
2010-02-20 23:20 1458414588 s3://file.tgz.02

How to select all files of archive, ending at 0 ... X, with the latest date of fileset ?

Bash, regexp ?

Thanx!

© Stack Overflow or respective owner

Related posts about bash

Related posts about ls