Run a Shell Script With Environment Variables in One Line

Jul 19, 2021 / Updated on Jul 19, 2021

env1=a env2=b

e.g.

my_var1=abc my_var2=xyz ./myscript.sh
comments powered by Disqus
Categories:
Tags: