Skip to content

piko::tutorial

piko::tools store

bash array

Sharing variable between bash scripts
Posted in
  • Linux

Sharing variable between bash scripts

Sharing Variables The simplest way to share variables between Bash scripts is to place them in a separate common script and source that script wherever the variables are needed. Then, in another script: Using source executes the contents of common.sh in the current shell, making the exported variables available to…

Sharing variable between bash scripts Read More
    Powered by WordPress and HybridMag.

    Resources

    • Privacy Policy