How-To Guides / S3 How to search for files in S3 bucket folder using wildcard aws s3 ls s3://bucketname/prefix1/prefix2/ | grep searchterm* | awk '{print $4}' Share this: Click to share on WhatsApp (Opens in new window) WhatsApp Click to share on Facebook (Opens in new window) Facebook Click to share on LinkedIn (Opens in new window) LinkedIn Click to share on Pinterest (Opens in new window) Pinterest Click to share on Reddit (Opens in new window) Reddit Related See also How to copy data from a file in S3 bucket to Redshift tables