Skip to content

Instantly share code, notes, and snippets.

View mohamednajiullah's full-sized avatar

Mohamed Najiullah mohamednajiullah

View GitHub Profile
@mohamednajiullah
mohamednajiullah / version_compare.sh
Last active August 1, 2023 06:00
Compare the last two versions of a file stored in a S3 bucket
#!/bin/bash
#This script needs awscli, jq and colordiff. Please install them for your environment
#This script also needs the AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_DEFAULT_REGION.
#Please set them using the export command as follows or set them using envrc
#export AWS_ACCESS_KEY_ID=<Your AWS Access Key ID>
#export AWS_SECRET_ACCESS_KEY=<Your AWS Secret Access Key>
#export AWS_DEFAULT_REGION=<Your AWS Default Region>