Last active
September 22, 2016 05:18
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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