Home » » Shell Scripting Tutorial For Beginners Fourteen - Array Variables

Shell Scripting Tutorial For Beginners Fourteen - Array Variables

#! /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[@]}" 

0 comments:

Post a Comment

Search

Blog Archive