Skip to content

piko::tutorial

piko::tools store

bash script

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
Simple menus in Bash scripts with select
Posted in
  • Linux

Simple menus in Bash scripts with select

Welcome to the next pikoTutorial! The select keyword in shell scripting provides an easy way to present a list of options to the user and handle their selection. It is particularly useful when you have a predefined set of choices and want the user to pick one. When you run…

Simple menus in Bash scripts with select Read More
    Powered by WordPress and HybridMag.

    Resources

    • Privacy Policy