diff
is used to find differences between two files. For easier usage, combine it with -u
:
diff -u file1 file2
#!/bin/bash | |
PROFILE="" | |
INSTANCE_ID="" | |
echo "Instance ID: $INSTANCE_ID" | |
echo "Fetching instance details..." | |
instance_details=$(aws --profile $PROFILE ec2 describe-instances --instance-ids "$INSTANCE_ID" --query 'Reservations[0].Instances[0]' --output json) | |
echo "Instance details fetched successfully." |
#!/bin/bash | |
# Define variables | |
REGION="eu-west-1" | |
PROFILE="default" | |
OUTPUT_FORMAT="json" | |
# Helper function to fetch and print results | |
function fetch_and_print { | |
local description=$1 |
#!/bin/bash | |
# Define variables | |
REGION="eu-west-1" | |
PROFILE="default" | |
OUTPUT_FORMAT="json" | |
PERIOD_IN_SECONDS=3600 | |
STATISTIC="Maximum" | |
END_TIME=$(date -u "+%Y-%m-%dT%H:%M:%SZ") | |
START_TIME=$(date -u -v-7d "+%Y-%m-%dT%H:%M:%SZ") |
#!/bin/bash | |
# Environment Variables | |
CONTAINER_NAME="dev-postgres" | |
POSTGRES_IMAGE="postgres" | |
POSTGRES_PASSWORD="dev_password" | |
DATA_DIR="${HOME}/dev_postgres/" | |
# Display Help | |
Help() |