Skip to content

Instantly share code, notes, and snippets.

@pjmartorell
Last active May 6, 2016 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjmartorell/6ce2acd786f529474fd2843308f0cda5 to your computer and use it in GitHub Desktop.
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
#!/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