Apr 5, 2020 ulysses
Here’s how to list S3 files recursively.
aws s3 ls s3://mybucket --recursive | awk '{print $4}'
By default, the results display date, time, disk size and filename. Use awk to display the filename only.