bash: Variable substitution - Reference a variable delimiting the shell variable name.



  • Take into account the main readme for this section. README first.

    We see that this did not work as expected, the value contains periods Echoing the variable name it displays nothing.

    $ Website=https://www.thevenusproject.com/
    $ echo $Webiste
    
    $
    

    Delimiting the variable name with curly brackets.

    $ echo ${Website}
    https://www.thevenusproject.com/
    

Log in to reply
 

© Lightnetics 2024