#! /bin/bash os=('ubuntu' 'windows' 'kali') os[6]='mac' unset os[2] echo "${os[@]}" echo "${os[0]}" echo "${!os[@]}" echo "${#os[@]}" string=dasfdsafsadfasdf echo "${string[@]}" echo "${string[0]}" echo "${string[1]}" echo "${#string[@]}"
Shell Scripting Tutorial For Beginners Fourteen - Array Variables
Posted by Hold
on January 23, 2017
0 comments:
Post a Comment