$ vi genapArr
#!/bin/bash
#ArrayBulan
#declaration Variable Array
declare -a nilai
#clear
i=0
while[$i-le 4];
do
let isi=$i*2;
nilai[$i]=$isi;
let i=$i+1;
done
#dengan index berisi "*" atau "@"
echo ${angka[*]};
#destroy array angka
#agar memory yang dipakai dibebaskan
unset nilai
$ ./genapArr
Hasilnya
0 2 4 6 8
- Home
- Activities
- Dimensional Control
- Total Angola - KAOMBO
- ENI - Jangkrik
- Iraq Platform
- AL Wasit --HASBAH - ARABIYAH
- Chevron - Gorgon
- Ichthys LNG Project | INPEX
- BP Tangguh
- Saipem Nigeria - Project EGINA
- Saipem Misr Eqypt - Project Zohr
- PHE ONWJ -3D Laser Scanning Surveyor
- FORMOSA 2 - Wind Farm Offshore
- NNG - Wind Offhore
- BP Senegal Tortue
- Software Surveyor
- Hardware Surveyor
- Contact
No comments:
Post a Comment