bash: array - Delete an array.



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

    An array called planet.

    $ declare -a planet=(earth wind fire)
    

    Delete the array. Using builtin unset

    $ echo "${planet[@]}"
    earth wind fire
    $ unset planet
    $ echo "${planet[@]}"
    
    $
    

Log in to reply
 

© Lightnetics 2024