Last active
May 6, 2016 09:06
-
-
Save pjmartorell/6ce2acd786f529474fd2843308f0cda5 to your computer and use it in GitHub Desktop.
Find the symmetric difference between Amazon S3 object list and your local files list
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
#!/usr/bin/env bash | |
comm -13 <(aws s3 ls s3://my-bucket | awk '{print $NF}' | sort) <(ls my_local_folder/ | awk '{print $NF}' | sort) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment