Skip to content
Advertisement

how to include a file containing variables in a shell script

i have many script shell and i want to include a file containing variables in this shell

script?

My var script:

JavaScript

My script sh:

JavaScript

Thx.

Advertisement

Answer

It depends which shell, but one of these two usually works:

JavaScript

or

JavaScript

I’m not sure about ksh, but I’d imagine both would work.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement