Skip to content

Instantly share code, notes, and snippets.

@marcus-crane
Last active September 22, 2016 05:18
Show Gist options
  • Save marcus-crane/9be9ca85180bfd12a07e67ea015d5112 to your computer and use it in GitHub Desktop.
Save marcus-crane/9be9ca85180bfd12a07e67ea015d5112 to your computer and use it in GitHub Desktop.
A bash script for checking my raw emails received from an Amazon S3 bucket
#!/bin/bash
cd DIRECTORY
aws s3 sync s3://BUCKET_NAME .
for i in $( ls ); do
echo Name: $i
cat $i | grep "Subject: "
echo ""
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment