Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash script object array

emails=('test@abc.com' 'test@xyz.org')
passwords=('admin123' 'passwd1!')
for (( i = 0; i < ${#emails[@]}; ++i )); do
    echo "Email: ${emails[i]}"
    echo "Password: ${passwords[i]}"
done
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #script #object #array
ADD COMMENT
Topic
Name
7+8 =