Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 54bb512

Browse files
author
Ankam Ravi Kumar
authored
Create array.sh
1 parent 99ccc04 commit 54bb512

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

array.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
#Purpose: Array Example
3+
#Version:1.0
4+
#Created Date: Mon May 28 22:59:22 IST 2018
5+
#Modified Date:
6+
#WebSite: https://arkit.co.in
7+
#Author: Ankam Ravi Kumar
8+
# START #
9+
fruits=( "Apple" "Orange" "Banana" "Sapota" )
10+
fruits[3]='Green Apple'
11+
for fruit in ${fruits[@]}
12+
do
13+
echo "Fruit Name is $fruit"
14+
done
15+
16+
echo "Number of Fruits in Bucket is" ${#fruits[@]}
17+
echo "All Fruits ${fruits[@]}"
18+
19+
# END #

0 commit comments

Comments
 (0)