Starting for Loop from second element - Shell script
You can use ${number[@]:1}
to start iterating from 2nd element:
for i in "${number[@]:1}"; do
echo "Processing: $i"
done
You can use ${number[@]:1}
to start iterating from 2nd element:
for i in "${number[@]:1}"; do
echo "Processing: $i"
done