by Timpy · 4y ago · 0 comments
env > "$(date +s).env-snapshot"
(And use it again slightly more awkwardly as <$file | xargs -I@ echo '"@"' | tr '\n' ' ' | xargs -I@ env @ cmd
or something more convenient to `cmd`.) <$file xargs ...docker gives you this (but only as part of a whole ecosystem, which for various reasons you might not want to hitch your horse to).