bash: if else with floats in bash , for i s, arrays

arr=(“as” “df” 5 kkk “uz z t”);
for ((i=0; i<10; i++));
do echo ${arr[$i]};
done

OUTPUT:

as
df
5
kkk
uz z t

calc if else with floats
a=1.6;b=1.7;if [[ $a < $b ]];then echo $a smaller than $b;fi numbers: i=0 $((i+2)) >> 2


Comments are closed.