Karl Isenberg
1 min readFeb 19, 2019

--

I hadn’t. Seems a little too complicated for its own good, but if it works for you, have at it.

If you’re willing to install things, envsubt can replace bash interpolation. Then you just need a tiny script to load env vars from a file and export them. Need a hash function? Another tiny script. Then you’ve at least followed The Unix Philosophy.

The nice thing about my bash template file pattern tho is that you can embed arbitrary subshell interpolation if you need to call out to another script or function. Infinite composability. Minimal cognitive overhead.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Karl Isenberg
Karl Isenberg

Written by Karl Isenberg

Cloud Guy. Anthos Solutions Architect at Google (opinions my own). X-Cruise, X-Mesosphere, & X-Pivotal.

No responses yet

Write a response