Merging two ini/env keyval files and remove duplicate keys using awk
gist.github.com
gist.github.com
Needed to combine multiple key/value files, like .ini or .env, and have some values override others while removing duplicates.
This script + example demonstrates how to use awk to remove duplicate lines based on their key.
Could be whatever way you want it to be really, but that's the case here.