Tag: vars

  • Vars expansion

    Some examples of how to work with variables in bash. ### Vars expansion with ${} ### ## Default value # If a variable is not set a default value will be used. If it’s set, # its value is used echo ${NAME:-Pepe} # -> Pepe NAME=”Juanje” echo ${NAME:-Pepe} # -> Juanje ## Assign a default value…