Skip to content

Instantly share code, notes, and snippets.

@gonaumov
Created October 5, 2022 04:57
Show Gist options
  • Save gonaumov/9467e4301b6e7805f70556aff003d1ad to your computer and use it in GitHub Desktop.
Save gonaumov/9467e4301b6e7805f70556aff003d1ad to your computer and use it in GitHub Desktop.
A useful one liner for comparing files containing environment variables.
sdiff -l -w 166 .env .env-old | cat -n | grep -v -e '($' | awk -F '\\|[^[:alnum:]]+' '{print $1"| "$2}' > diff.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment