Created
October 5, 2022 04:57
-
-
Save gonaumov/9467e4301b6e7805f70556aff003d1ad to your computer and use it in GitHub Desktop.
A useful one liner for comparing files containing environment variables.
This file contains hidden or 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
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