Time pass to be honest,may work as a reference later,I am not sure.
#!/bin/bash
# Create an indexed array
IndexedArray=(egg burger milk)
#Iterate over the array to get all the values
for i in "${IndexedArray[@]}";do echo "$i";done
Source:https://www.hostinger.in/tutorials/bash-script-example
No comments:
Post a Comment