I have an amazon s3 bucket that has tens of thousands of filenames in it. What\'s the easiest way to get a text file that lists all the filenames in the bucket?
The below command will get all the file names from your AWS S3 bucket and write into text file in your current directory:
aws s3 ls s3://Bucketdirectory/Subdirectory/ | cat >> FileNames.txt