bash: List variables that begin with prefix.



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

    Syntax is:
    ${!prefix*} or ${!prefix@}

    Using the first two letters of variable name Brazil2.

    $ Brazil2=SugarCane
    $ echo ${!Br*}
    Brazil2
    $ echo ${!Br@}
    Brazil2
    

Log in to reply
 

© Lightnetics 2024