Merge Key=Value Files

Merge Key=Value files (ex. .env, .ini) through shell scripting.

sort -u -t '=' -k 1,1 a.env b.env c.env > merged.env

In the example above, Key=Value pairs in a.env takes precedence over b.env which takes precedence over c.env, etc.