Bash Coding
Some tips and tricks
Array's
Creating an array
taskers[0]=12345 taskers[1]=12346
Printing all elements of the array
echo "${taskers[@]}"
Size of array
echo "${#taskers[@]}"
Iterator
for i in "${buffer[@]}"; do
echo $i
done
taskers[0]=12345 taskers[1]=12346
echo "${taskers[@]}"
echo "${#taskers[@]}"
for i in "${buffer[@]}"; do
echo $i
done